-
Notifications
You must be signed in to change notification settings - Fork 29
44 lines (34 loc) · 973 Bytes
/
main.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
name: Main
on:
push:
branches: [main]
pull_request:
branches: ['**']
jobs:
build-validate-pref-tests:
name: Build, validate & run performance tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
- name: Install and build
run: yarn install --immutable
- name: Validate TypeScript
run: yarn typecheck && yarn typecheck:test-app
- name: Validate ESLint
run: yarn lint && yarn lint:deps
- name: Run tests
run: yarn test && yarn test:test-app
- name: Run performance tests
run: cd test-apps/native && ./reassure-tests.sh
- name: Run Danger.js
run: yarn danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}