-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (44 loc) · 1.15 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Test
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
env:
WIKIDATA_USERNAME: ${{ secrets.WIKIDATA_USERNAME }}
WIKIDATA_PASSWORD: ${{ secrets.WIKIDATA_PASSWORD }}
strategy:
matrix:
node-version: [16, 18, "latest"]
fail-fast: true
max-parallel: 1
steps:
- uses: actions/checkout@v4
- name: use node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm run test:all
coverage:
runs-on: ubuntu-latest
needs: test
env:
WIKIDATA_USERNAME: ${{ secrets.WIKIDATA_USERNAME }}
WIKIDATA_PASSWORD: ${{ secrets.WIKIDATA_PASSWORD }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: 🔎 Check IP
run: curl https://api.ipify.org
- run: npm ci
- run: npm run coverage:all
- name: 📊 Codecov
uses: codecov/codecov-action@v3