-
-
Notifications
You must be signed in to change notification settings - Fork 21
38 lines (34 loc) · 1.07 KB
/
test-push-to-master.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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Test
on:
push:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@master
with:
node-version: 16.x
- name: Use npm 9
run: npm i -g npm@9
- name: Install Dependencies
run: npm ci
- name: Check Prettier Formatting
run: npm run test:format
- name: Run ESLint
run: npm run lint
- name: Build
run: npm run build
- name: Run Tests
run: npm run test
env:
CI: true
LRS_CREDENTIALS_ARRAY: ${{ secrets.LRS_CREDENTIALS_ARRAY }}
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}