Skip to content

Commit f2d5244

Browse files
committed
ci: run tests in CI
1 parent ce682cb commit f2d5244

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Diff for: .github/workflows/CI.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ name: Node.js CI
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: ['main']
99
pull_request:
10-
branches: [ "main" ]
10+
branches: ['main']
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615

1716
strategy:
@@ -20,15 +19,16 @@ jobs:
2019
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2120

2221
steps:
23-
- uses: actions/checkout@v3
24-
with:
25-
fetch-depth: 0
26-
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v3
28-
with:
29-
node-version: ${{ matrix.node-version }}
30-
cache: 'yarn'
31-
- run: yarn install --frozen-lockfile
32-
- run: yarn global add nx
33-
- uses: nrwl/nx-set-shas@v2
34-
- run: nx affected --target=build
22+
- uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'yarn'
30+
- run: yarn install --frozen-lockfile
31+
- run: yarn global add nx
32+
- uses: nrwl/nx-set-shas@v2
33+
- run: nx affected --target=build
34+
- run: nx affected --target=test --configuration=ci

0 commit comments

Comments
 (0)