-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1.03 KB
/
verify-pull-request.yaml
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
name: Verify PR
on:
pull_request:
branches:
- main
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Cache node_modules
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- run: yarn install
- uses: nrwl/nx-set-shas@v3
# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track main origin/main
- name: Create .env files
run: |
touch ./shared/sdk/.env
echo API_USERNAME=${{ secrets.API_USERNAME }} >> ./shared/sdk/.env
echo API_PASSWORD=${{ secrets.API_PASSWORD }} >> ./shared/sdk/.env
touch ./apps/asdf-e2e/.env
echo API_USERNAME=${{ secrets.API_USERNAME }} >> ./apps/asdf-e2e/.env
echo API_PASSWORD=${{ secrets.API_PASSWORD }} >> ./apps/asdf-e2e/.env
- run: npx nx format:check
- run: npx nx affected -t lint,test,build,build-storybook,e2e --parallel=3