build: make dmg layout deterministic in ci #139
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Dev CI | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - dev | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| backend-test-build: | |
| name: Backend Test & Build | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: backend | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.23" | |
| - name: Run backend tests | |
| run: bash ../scripts/ci/go_test_with_retry.sh | |
| - name: Build routerd | |
| run: go build ./cmd/routerd | |
| frontend-test-build: | |
| name: Frontend Test & Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm --prefix frontend ci | |
| - name: Run release script tests | |
| run: | | |
| bash scripts/test/desktop_updater_config_test.sh | |
| bash scripts/test/go_test_with_retry_test.sh | |
| bash scripts/test/notarize_macos_test.sh | |
| bash scripts/test/release_apple_signing_test.sh | |
| bash scripts/test/release_updater_signing_key_test.sh | |
| bash scripts/test/release_version_helpers_test.sh | |
| bash scripts/test/sync_release_metadata_test.sh | |
| bash scripts/test/collect_release_assets_test.sh | |
| bash scripts/test/release_updater_manifest_test.sh | |
| bash scripts/test/package_local_release_test.sh | |
| - name: Run frontend tests | |
| run: npm --prefix frontend run test | |
| - name: Build frontend | |
| run: npm --prefix frontend run build |