-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (35 loc) · 1.11 KB
/
ci.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
name: Continuous integration
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Node v20
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm clean-install
- name: Static code analysis
run: npm run lint
- name: Compile Typescript
run: npm run compile
- name: Run tests
run: npm test
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./target/coverage/lcov.info
parallel: true
coverage:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true