-
Notifications
You must be signed in to change notification settings - Fork 69
41 lines (41 loc) · 1.01 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Test
on:
pull_request:
push:
branches:
- master
- develop
jobs:
tests:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 8
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Lint code
run: pnpm lint
- name: Format code
run: pnpm format
- name: Run git status
run: git status
- name: Check that lints where commited
run: test -z "$(git status --porcelain)"
- name: Build
run: pnpm build
- name: Check that all build artifacts where commited
run: test -z "$(git status --porcelain)"
- name: Run tests
run: pnpm test
if: matrix.platform == 'ubuntu-latest'