-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (28 loc) · 854 Bytes
/
ci.yml
File metadata and controls
28 lines (28 loc) · 854 Bytes
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
name: CI
on:
workflow_call:
push:
branches:
- main
jobs:
test:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5.0.0
with:
persist-credentials: false
- uses: actions/setup-node@v5.0.0
with:
node-version-file: ".node-version"
- name: Install dependencies, run test coverage
run: |
npm ci
npm install c8@10.1.3
npm run coverage
- name: Coveralls
if: github.ref == 'refs/heads/main'
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b #v2.3.6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}