This repository was archived by the owner on Nov 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (50 loc) · 1.37 KB
/
ci.yml
File metadata and controls
50 lines (50 loc) · 1.37 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
name: CI
'on': push
jobs:
test-node:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14.15.1
steps:
- uses: actions/checkout@v4
- name: 'Build / Test Node ${{ matrix.node-version }}'
uses: actions/setup-node@v4.0.0
with:
node-version: '${{ matrix.node-version }}'
- run: npm ci
- run: npm run cover --if-present
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
continue-on-error: true
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
flag-name: 'run-${{ matrix.test_number }}'
path-to-lcov: build/coverage/lcov.info
parallel: true
release:
needs:
- test-node
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.0.0
with:
node-version: 14.15.1
- run: npm ci
- run: npx semantic-release
env:
CI: 'true'
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
finish:
needs: test-node
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
path-to-lcov: build/coverage/lcov.info
parallel-finished: true