-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathexample-next-build-check-and-test.yml
More file actions
46 lines (43 loc) · 1.26 KB
/
example-next-build-check-and-test.yml
File metadata and controls
46 lines (43 loc) · 1.26 KB
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
name: Example Next build check and tests
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
pull_request:
paths:
- .github/workflows/example-next-build-check-and-test.yml
- 'packages/react-native-reanimated/src/**'
- 'packages/react-native-worklets/src/**'
- 'apps/next-example/**'
push:
branches:
- main
workflow_call:
workflow_dispatch:
jobs:
example-next-build-check-and-test:
runs-on: ubuntu-latest
concurrency:
group: build-next-example-${{ github.ref }}
cancel-in-progress: true
env:
WORKING_DIRECTORY: apps/next-example
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
cache: yarn
- name: Install monorepo node dependencies
run: yarn install --immutable
- name: Build packages
run: yarn build
- name: Install Cypress dependencies
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn cypress install
- name: Compile production build
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn build:next
- name: Run e2e tests
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn e2e:headless