-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 829 Bytes
/
build.yml
File metadata and controls
34 lines (32 loc) · 829 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
29
30
31
32
33
34
name: Build
permissions:
contents: read
on: [push]
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm install --no-optional
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
- name: Adjust coverage results
run: npm run sed
if: runner.os == 'Linux'
- name: Coveralls
if: runner.os == 'Linux'
uses: coverallsapp/github-action@v2.3.0
with:
github-token: ${{ github.token }}
file: ./out/coverage/lcov.info