-
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (34 loc) · 1006 Bytes
/
check.yml
File metadata and controls
41 lines (34 loc) · 1006 Bytes
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: Check
on:
pull_request:
branches:
- 'next'
- 'main'
types: [opened, synchronize, reopened]
env:
TEST_EAS_PRIVATE_KEY: ${{ secrets.TEST_EAS_PRIVATE_KEY }}
TEST_USER_PRIVATE_KEY: ${{ secrets.TEST_USER_PRIVATE_KEY }}
jobs:
check:
name: Run tests and format checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js and pnpm
uses: ./.github/actions/setup-node-pnpm
- name: Run Tests - Unit
run: |
pnpm --filter ui-react run test:unit
pnpm --filter domain run test:unit
- name: Run Check
run: pnpm exec turbo run check
- name: Report Status
if: always()
uses: actions/github-script@v7
with:
script: |
const { job, conclusion } = context.payload.workflow_run || {};
if (conclusion === 'failure') {
core.setFailed('Lint and format checks failed');
}