-
Notifications
You must be signed in to change notification settings - Fork 14
48 lines (39 loc) · 1.12 KB
/
test-all.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
42
43
44
45
46
47
48
name: 'Test: All Tests'
on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
push:
branches:
- staging
env:
NODE_VERSION: 18
jobs:
testAll:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache dependencies
id: node-modules-cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-node_modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install --frozen-lockfile
if: steps.node-modules-cache.outputs.cache-hit != 'true'
- name: Test modifier data
run: yarn testModifiers
- name: Test preset data
run: yarn testPresets
- name: Lint with ESLint
run: yarn eslint
- name: Format with prettier
run: yarn prettierCheck