-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (34 loc) · 991 Bytes
/
test.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
name: 'test'
on:
workflow_call:
jobs:
test:
name: 'Test'
strategy:
matrix:
# os: [macos-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Capture Yarn cache path
id: yarn-cache-folder
run: echo "YARN_CACHE_FOLDER=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Yarn cache
uses: actions/cache@v3
id: yarn-cache
if: runner.os != 'Windows'
with:
path: ${{ steps.yarn-cache-folder.outputs.YARN_CACHE_FOLDER }}
key: yarn-cache
- name: Install dependencies
run: tool/yarn install --frozen-lockfile --prefer-offline
- name: Unit tests
run: tool/yarn test
- name: Lint
run: tool/yarn lint
- name: Typescript
run: tool/yarn tsc --noEmit
- name: Prettier
run: tool/yarn prettier --check .