-
-
Notifications
You must be signed in to change notification settings - Fork 128
33 lines (33 loc) · 855 Bytes
/
actions.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
name: GitHub Actions
run-name: ${{ github.event.pull_request.title }} CI Checks
on:
push:
pull_request:
types: [opened, synchronize]
jobs:
"run-unit-tests":
name: "Run unit tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Use node version"
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: "Install dependencies"
run: npm install
- name: Run tests
run: npm run test
"lint":
name: "Checking for linting errors"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Use node version"
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: "Install dependencies"
run: npm install
- name: Checking linter
run: npm run lint