Skip to content

Commit bd381ae

Browse files
committed
Consolidate github workflow and use npm ci
1 parent f5428c7 commit bd381ae

File tree

1 file changed

+5
-41
lines changed

1 file changed

+5
-41
lines changed

.github/workflows/commit-workflow.yml

Lines changed: 5 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,20 @@ name: Commit workflow
33
on: [push, pull_request]
44

55
jobs:
6-
linux-setup-and-tests:
7-
runs-on: ubuntu-latest
8-
defaults:
9-
run:
10-
working-directory: ./frontend/peerprep
11-
strategy:
12-
matrix:
13-
node-version: [20.x]
14-
steps:
15-
- uses: actions/checkout@v3
16-
- name: Setup and tests with Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v3
18-
with:
19-
node-version: ${{ matrix.node-version }}
20-
- run: npm install
21-
- run: npm run lint
22-
- run: npm run build
23-
24-
macos-setup-and-tests:
25-
runs-on: macos-latest
26-
defaults:
27-
run:
28-
working-directory: ./frontend/peerprep
6+
build:
297
strategy:
308
matrix:
9+
os: [ubuntu-latest, macos-latest, windows-latest]
3110
node-version: [20.x]
32-
steps:
33-
- uses: actions/checkout@v3
34-
- name: Setup and tests with Node.js ${{ matrix.node-version }}
35-
uses: actions/setup-node@v3
36-
with:
37-
node-version: ${{ matrix.node-version }}
38-
- run: npm install
39-
- run: npm run lint
40-
- run: npm run build
41-
42-
windows-setup-and-tests:
43-
runs-on: windows-latest
11+
runs-on: ${{ matrix.os }}
4412
defaults:
4513
run:
4614
working-directory: ./frontend/peerprep
47-
strategy:
48-
matrix:
49-
node-version: [20.x]
5015
steps:
5116
- uses: actions/checkout@v3
52-
- name: Setup and tests with Node.js ${{ matrix.node-version }}
53-
uses: actions/setup-node@v3
17+
- uses: actions/setup-node@v3
5418
with:
5519
node-version: ${{ matrix.node-version }}
56-
- run: npm install
20+
- run: npm ci
5721
- run: npm run lint
5822
- run: npm run build

0 commit comments

Comments
 (0)