-
-
Notifications
You must be signed in to change notification settings - Fork 5
72 lines (67 loc) · 2.02 KB
/
node.js.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
60
61
62
63
64
65
66
67
68
69
70
71
72
name: "Node.js"
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ develop ]
schedule:
- cron: '42 18 * * 6'
jobs:
lts_versions:
name: "Get versions"
runs-on: ubuntu-latest
steps:
- id: set-matrix
run: echo "matrix=$(curl -s https://raw.githubusercontent.com/fvdm/nodejs-versions/main/lts-current.json)" >> $GITHUB_OUTPUT
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
build:
name: "Node"
needs: lts_versions
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ${{ fromJson(needs.lts_versions.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- name: Test on Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
GEOIP2WS_USERID: ${{ secrets.GEOIP2WS_USERID }}
GEOIP2WS_LICENSE: ${{ secrets.GEOIP2WS_LICENSE }}
GEOIP2WS_SERVICE: ${{ secrets.GEOIP2WS_SERVICE }}
GEOIP2WS_ENDPOINT: ${{ secrets.GEOIP2WS_ENDPOINT }}
GEOIP2WS_TIMEOUT: ${{ secrets.GEOIP2WS_TIMEOUT }}
DOTEST_NOCOV: ${{ secrets.DOTEST_NOCOV }}
DOTEST_MINCOV: ${{ secrets.DOTEST_MINCOV }}
DOTEST_COVFUNCTIONS: 100
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
if: always()
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node-${{ matrix.node-version }}
parallel: true
good_build:
name: "Good build"
needs: build
runs-on: ubuntu-latest
steps:
- run: echo "Build was sucessfull"
finish:
name: "Upload coverage"
needs: build
if: always()
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true