-
Notifications
You must be signed in to change notification settings - Fork 24
40 lines (40 loc) · 951 Bytes
/
test.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
name: Run tests
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '3 2 * * SUN'
permissions: {}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: [18, 20]
steps:
- uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
- run: npm ci
- run: npm test --coverage
- run: npm run build
- run: npm run build:docs
- run: npm link
- run: npm ci
working-directory: e2e/js
- run: npm link '@maxmind/geoip2-node'
working-directory: e2e/js
- run: npx jest
working-directory: e2e/js
- run: npm ci
working-directory: e2e/ts
- run: npm link '@maxmind/geoip2-node'
working-directory: e2e/ts
- run: npx jest
working-directory: e2e/ts