Skip to content

Commit e22ae4d

Browse files
authored
ci: add test runs to PRs (#32)
* ci: add test runs to PRs * ci: fix line EOL for Windows ci * ci: only run lint on ubuntu
1 parent 988ffee commit e22ae4d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
pull_request:
10+
11+
jobs:
12+
test:
13+
name: Test (${{ matrix.os }} - ${{ matrix.arch }})
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ macOS-latest, ubuntu-latest, windows-latest ]
18+
arch: [ x64 ]
19+
include:
20+
- os: macOS-latest
21+
arch: arm64
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Setup Node.js 16.x
25+
uses: actions/[email protected]
26+
with:
27+
node-version: 16.x
28+
cache: yarn
29+
- name: Install
30+
run: yarn install
31+
- name: Lint
32+
if: matrix.os == 'ubuntu-latest'
33+
run: yarn lint
34+
- name: Run tests
35+
run: yarn test:ci

0 commit comments

Comments
 (0)