-
Notifications
You must be signed in to change notification settings - Fork 5.7k
49 lines (46 loc) · 1.63 KB
/
Copy pathcompiled-worker.yml
File metadata and controls
49 lines (46 loc) · 1.63 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
name: Compiled session worker
on:
pull_request:
paths:
- script/senpi-worker-compile.ts
- script/senpi-worker-compile.test.ts
- .github/workflows/compiled-worker.yml
workflow_dispatch:
permissions:
contents: read
jobs:
relocated-worker:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.4.2"
- name: Exercise relocated compiled workers without repository dependencies
shell: bash
run: |
set -euo pipefail
scratch=$(mktemp -d)
trap 'rm -rf "$scratch"' EXIT
mkdir -p "$scratch/script" "$scratch/test-support"
cp script/senpi-worker-compile.ts script/senpi-worker-compile.test.ts "$scratch/script/"
cp test-support/remove-tree.ts "$scratch/test-support/"
cd "$scratch/script"
bun --revision
bun test
- name: Write job summary
if: always()
shell: bash
env:
JOB_SUMMARY_TITLE: Compiled session worker (${{ matrix.os }})
JOB_SUMMARY_STATUS: ${{ job.status }}
JOB_SUMMARY_DETAILS: |
- Bun 1.4.2; directory, Bun-link, and external-link layouts.
- Source trees removed before relocated executables start two workers.
JOB_SUMMARY_NEXT: Inspect the test log for runtime revision and executable SHA-256 values.
run: GITHUB_STEP_SUMMARY="$GITHUB_STEP_SUMMARY" bash .github/scripts/write-job-summary.sh