Skip to content

Commit b1a9654

Browse files
committed
Add commit workflow yml to repo
The commit workflow yml will be used with Github actions to perform checks and lints to ensure the push and commit is up to standard.
1 parent e59b6dc commit b1a9654

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Commit workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
linux-setup-and-tests:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [20.x]
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Setup and tests with Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- run: npm install
18+
- run: npm run lint
19+
- run: npm run build
20+
21+
macos-setup-and-tests:
22+
runs-on: macos-latest
23+
strategy:
24+
matrix:
25+
node-version: [20.x]
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Setup and tests with Node.js ${{ matrix.node-version }}
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
- run: npm install
33+
- run: npm run lint
34+
- run: npm run build
35+
36+
windows-setup-and-tests:
37+
runs-on: windows-latest
38+
strategy:
39+
matrix:
40+
node-version: [20.x]
41+
steps:
42+
- uses: actions/checkout@v3
43+
- name: Setup and tests with Node.js ${{ matrix.node-version }}
44+
uses: actions/setup-node@v3
45+
with:
46+
node-version: ${{ matrix.node-version }}
47+
- run: npm install
48+
- run: npm run lint
49+
- run: npm run build

0 commit comments

Comments
 (0)