-
-
Notifications
You must be signed in to change notification settings - Fork 454
44 lines (40 loc) · 1.18 KB
/
tests.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
name: Node.js CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- name: Setup DBUS environment
if: matrix.os == 'ubuntu-latest'
run: |
export DISPLAY=$(hostname -I):0
machineId=$(cat /var/lib/dbus/machine-id)
mkdir -p ${home}/.dbus
dbus-launch --exit-with-session --address=unix:${home}/.dbus/session-bus/${machineId}-${displayNum} &
sleep 1 # Wait for the DBUS session to start
- name: Set Timezone
uses: szenius/[email protected]
with:
timezoneLinux: Europe/Amsterdam
timezoneMacos: Europe/Amsterdam
timezoneWindows: W. Europe Standard Time
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.17.1'
- run: npm install npm@9 -g
- run: npm install
- run: npx nyc --reporter=lcov npm test
env:
CI: true
DISPLAY: ':0'
- name: Codecov
uses: codecov/codecov-action@v3