Skip to content

Commit cdd8ca1

Browse files
authored
Consolidate static analysis and unit tests (#186)
1 parent 71e4fe4 commit cdd8ca1

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
10-
types-lint-build:
13+
static-analysis:
14+
name: Static Analysis
1115
runs-on: ubuntu-latest
1216

1317
steps:
1418
- uses: actions/checkout@v4
1519

16-
- uses: actions/setup-node@v4.0.1
20+
- uses: actions/setup-node@v4
1721
with:
18-
node-version: '18'
22+
node-version-file: '.nvmrc'
1923
cache: 'yarn'
2024

2125
- run: yarn install
@@ -25,3 +29,22 @@ jobs:
2529
- run: yarn lint
2630

2731
- run: yarn build
32+
33+
unit-tests:
34+
name: Unit Tests
35+
runs-on: ubuntu-latest
36+
timeout-minutes: 10
37+
38+
steps:
39+
- uses: actions/checkout@v4
40+
41+
- uses: actions/setup-node@v4
42+
with:
43+
node-version-file: '.nvmrc'
44+
cache: 'yarn'
45+
46+
- run: yarn install
47+
48+
- run: yarn test:unit run
49+
env:
50+
CI: true

.github/workflows/unitTests.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)