-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (42 loc) · 1.31 KB
/
ci.yml
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
name: CI
on: push
# Cancel in progress runs of this workflow when we push changes to the branch
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- '18'
- '20'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Validate renovate config
run: npx --package renovate renovate-config-validator --strict
- name: Install dependencies
run: npm ci
- name: Fixup ink types
run: bash ./tools/fixup-ink-types.sh
- name: Run type checks
run: npm run type-check
- name: Run lint checks
run: npm run lint
- name: Run build
run: npm run build
env:
TSUP_PUBLIC_AUTOBLOCKS_INGESTION_KEY: test
- name: Run testing exec
run: npx autoblocks testing exec -- echo "hi"
env:
AUTOBLOCKS_API_KEY: test