-
Notifications
You must be signed in to change notification settings - Fork 1
82 lines (70 loc) · 2.38 KB
/
Copy pathci.yml
File metadata and controls
82 lines (70 loc) · 2.38 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: "17 20 * * *"
permissions:
contents: read
jobs:
node:
name: Node unit and package
runs-on: ubuntu-latest
concurrency:
group: ci-node-${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "22"
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci
- run: npm audit --audit-level=moderate
- run: npm run lint
- run: npm run typecheck
- run: npm test
- run: npm pack --dry-run
ci-hygiene:
name: CI hygiene
runs-on: ubuntu-latest
concurrency:
group: ci-hygiene-${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}
steps:
- uses: actions/checkout@v6
- uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8 # v2
hosted-live-integration:
name: Hosted live integration
runs-on: ubuntu-latest
needs: node
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
concurrency:
group: hosted-live-integration
cancel-in-progress: false
steps:
- name: Require hosted live integration token
env:
WDL_LIVE_ISSUER_TOKEN: ${{ secrets.WDL_LIVE_ISSUER_TOKEN }}
run: |
if [ -z "$WDL_LIVE_ISSUER_TOKEN" ]; then
echo "WDL_LIVE_ISSUER_TOKEN secret is required for hosted live integration." >&2
exit 1
fi
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "22"
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci
- run: npm run test:integration:live
env:
WDL_LIVE_CONTROL_URL: ${{ vars.WDL_LIVE_CONTROL_URL || 'api.wdl.dev' }}
WDL_LIVE_PLATFORM_DOMAIN: ${{ vars.WDL_LIVE_PLATFORM_DOMAIN || 'wdl.sh' }}
WDL_LIVE_TEMPLATE: ${{ vars.WDL_LIVE_TEMPLATE || 'wdl-cli-integration' }}
WDL_LIVE_ISSUER_TOKEN: ${{ secrets.WDL_LIVE_ISSUER_TOKEN }}