Repository navigation
v0.5.0 #13
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: validate | |
| on: | |
| pull_request: | |
| push: | |
| branches: ['main'] | |
| workflow_dispatch: | |
| # Fork PRs run the same checks without deployment or publishing credentials. | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: validate-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| release: | |
| name: Full release validation | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| env: | |
| CI: true | |
| CARGO_TERM_COLOR: always | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| with: | |
| persist-credentials: false | |
| - name: Setup pinned Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version-file: .node-version | |
| cache: npm | |
| - name: Install locked dependencies | |
| run: npm ci --no-audit --no-fund | |
| - name: Install pinned Rust toolchain and WASM target | |
| run: rustup show active-toolchain | |
| - name: Cache pinned Rust advisory auditor | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: .cache/tinyjoin/audit-tools | |
| key: ${{ runner.os }}-${{ runner.arch }}-cargo-audit-0.22.2-${{ hashFiles('rust-toolchain.toml') }} | |
| - name: Install Chromium and system dependencies | |
| run: npx --no-install playwright install --with-deps chromium | |
| - name: Run full release gate | |
| shell: bash | |
| env: | |
| TMPDIR: ${{ runner.temp }} | |
| run: | | |
| set -o pipefail | |
| npm run check:release 2>&1 | tee "$RUNNER_TEMP/tinyjoin-release.log" | |
| - name: Verify builds did not change dependency locks | |
| run: git diff --exit-code -- Cargo.lock package-lock.json | |
| - name: Retain release logs and browser traces | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: tinyjoin-validation-${{ github.run_attempt }} | |
| retention-days: 14 | |
| if-no-files-found: ignore | |
| include-hidden-files: true | |
| path: | | |
| ${{ runner.temp }}/tinyjoin-release.log | |
| ${{ runner.temp }}/tinyjoin-playwright-results | |
| ${{ runner.temp }}/tinyjoin-docs-playwright-results | |
| .cache/tinyjoin/security |