-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (63 loc) · 2.27 KB
/
Copy pathvalidate.yml
File metadata and controls
67 lines (63 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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