Repository navigation
84 lines (67 loc) · 2.13 KB
/
Copy pathci.yml
File metadata and controls
84 lines (67 loc) · 2.13 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
83
84
---
name: CI
on:
pull_request:
workflow_dispatch:
concurrency:
group: ci-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-slim
steps:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: package.json
- name: Configure sustainable npm
uses: lowlydba/sustainable-npm@4cc1da285e5a589a7b3816122f791c21ec6ff3e6 # v4.0.0
- name: Install NPM dependencies
run: npm ci
- name: Run tests
run: npm test
a11y:
name: Accessibility (WCAG 2.1 AA)
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: package.json
- name: Configure sustainable npm
uses: lowlydba/sustainable-npm@4cc1da285e5a589a7b3816122f791c21ec6ff3e6 # v4.0.0
- name: Install NPM dependencies
run: npm ci
- name: Build
run: npm run build
- name: Serve built site
run: |
npm run serve -- --port 3000 --no-open &
npx --yes wait-on@9 --timeout 60000 http://localhost:3000/
- name: Run accessibility tests
uses: lowlysre/pa11y-ci-action@84174759cd514bd3ea3bcaa30dc1798dde81f713 # v1.1.0
query-tests:
name: DuckDB query smoke tests
uses: $/.github/workflows/query-tests.yml
permissions:
contents: read
are-we-good:
name: are-we-good
runs-on: ubuntu-slim
needs: [unit-tests, a11y, query-tests]
if: always()
steps:
- uses: lowlydba/are-we-good@6b10e5f2697555fbaf7f8f37ce38d4454c954a4c # v1.2.2
with:
jobs: ${{ toJSON(needs) }}