Skip to content

Commit 62b9fcd

Browse files
author
Danny McCormick
committed
Add workflow
1 parent 06d666c commit 62b9fcd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/main.workflow.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on: push
2+
jobs:
3+
build:
4+
runs-on:
5+
pool: ${{ matrix.operating-system }}
6+
strategy:
7+
matrix:
8+
operating-system: [Linux]
9+
actions:
10+
- name: Set Node.js 10.x
11+
uses: bryanmacfarlane/node-config@master
12+
with:
13+
version: 10.x
14+
15+
- name: npm install
16+
# Explicitly uninstall husky so that we avoid issues with git hooks/node versioning.
17+
# Should switch to clean checkout instead when supported.
18+
run: npm prune --production && npm install && npm uninstall husky
19+
20+
- name: Lint
21+
run: npm run format-check
22+
23+
- name: npm test
24+
run: npm test

0 commit comments

Comments
 (0)