-
-
Notifications
You must be signed in to change notification settings - Fork 226
42 lines (39 loc) · 937 Bytes
/
unit-test.yml
File metadata and controls
42 lines (39 loc) · 937 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
35
36
37
38
39
40
41
42
name: Unit Tests
on:
pull_request:
branches: [ master ]
paths-ignore:
- 'docs/**'
- '*.md'
push:
branches: [ master ]
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
node_matrix:
uses: appium/appium-workflows/.github/workflows/node-lts-matrix.yml@main
node_test:
needs:
- node_matrix
strategy:
fail-fast: false
matrix:
node-version: ${{ fromJSON(needs.node_matrix.outputs.versions) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- uses: SocketDev/action@v1
with:
mode: firewall-free
- run: sfw npm install --no-package-lock
name: Install dev dependencies
- run: npm run lint
name: Run linter
- run: npm run format:check
name: Run Prettier check
- run: npm run test
name: Run unit tests