Repository navigation
67 lines (54 loc) · 1.47 KB
/
Copy pathci.yml
File metadata and controls
67 lines (54 loc) · 1.47 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: CI
on:
pull_request:
branches: ['**']
paths-ignore:
- '**/*.md'
- 'docs/**'
- 'LICENSE'
- '.github/ISSUE_TEMPLATE/**'
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
env:
HUSKY: 0
strategy:
fail-fast: false
matrix:
# The supported range is engines >=22: the oldest supported LTS, the
# development default from .nvmrc, and the newest release.
node-version: [22, 24, latest]
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Check @seamless-auth/types is current
run: npm run check:types-current
- name: Run Tests with Coverage
run: npm test -- --coverage --runInBand
- name: Build
run: npm run build
- name: Verify package contents
run: npm run check-npm-build
- name: Upload coverage reports to Codecov
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.node-version == 24
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}