Skip to content
This repository was archived by the owner on Aug 10, 2025. It is now read-only.

Commit 267e37f

Browse files
authored
Merge pull request #6 from dmackca/feature/actions
add github action to run tests and linter
2 parents 847fc2b + 8c3dc95 commit 267e37f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/node-tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Node.js yarn CI
2+
3+
on:
4+
push:
5+
branches: [ '**' ]
6+
pull_request:
7+
branches: [ '**' ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [10.x, 12.x]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: Borales/actions-yarn@v2.1.0
21+
with:
22+
cmd: install # will run `yarn install` command
23+
- uses: Borales/actions-yarn@v2.1.0
24+
with:
25+
cmd: lint # will run `yarn build` command
26+
- uses: Borales/actions-yarn@v2.1.0
27+
with:
28+
cmd: build # will run `yarn build` command
29+
- uses: Borales/actions-yarn@v2.1.0
30+
with:
31+
cmd: test # will run `yarn test` command

0 commit comments

Comments
 (0)