Skip to content

Commit 55de04c

Browse files
erwindonErwin Dondorp
authored andcommitted
Create node.js.yml
1 parent f5917bf commit 55de04c

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches:
9+
- "master"
10+
- "try_github_actions"
11+
pull_request:
12+
branches:
13+
- "master"
14+
- "try_github_actions"
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
21+
strategy:
22+
matrix:
23+
node-version: [18.x, 20.x, 22.x]
24+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Use Node.js ${{ matrix.node-version }}
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
cache: 'npm'
33+
- run: npm ci
34+
- run: npm stylelint
35+
- run: npm eslint
36+
- run: npm test:coverage
37+
38+
# start a salt master, three salt minions and saltgui to run tests on
39+
# Don't use --detach; travis docker does not understand it
40+
#docker-compose --file docker/docker-compose.yml up -d
41+
42+
# wait until all are up
43+
#npm run wait-for-docker
44+
45+
# run the nightmare.js functional tests
46+
#export DEBUG=nightmare:*,electron:*
47+
#export NIGHTMARE_DEBUG=1
48+
#npm run test:functional

0 commit comments

Comments
 (0)