-
Notifications
You must be signed in to change notification settings - Fork 24
102 lines (97 loc) · 2.76 KB
/
pr.yml
File metadata and controls
102 lines (97 loc) · 2.76 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: PR
on:
pull_request:
branches: [main]
env:
CI: 'true'
NX_DAEMON: 'true'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
pull-requests: write
issues: write
statuses: write
checks: write
contents: write
actions: read
pages: write
id-token: write
jobs:
build:
name: Build
runs-on: codebuild-nx-plugin-for-aws-runner-${{ github.run_id }}-${{ github.run_attempt }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: ./.github/actions/init-monorepo
with:
aws-docker-login-role-arn: ${{ secrets.AWS_DOCKER_LOGIN_ROLE_ARN }}
- name: Build
run: pnpm nx run-many --target build --all --output-style=stream
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Check for mutations
run: git diff --ignore-space-at-eol --exit-code -- ':!**/LICENSE-THIRD-PARTY'
- name: Upload artifact
uses: actions/upload-artifact@v7.0.0
with:
name: build-artifact
path: dist
smoke_tests:
name: Smoke Tests - ${{matrix.smoke_test}}
runs-on: codebuild-nx-plugin-for-aws-runner-${{ github.run_id }}-${{ github.run_attempt }}
needs: build
strategy:
fail-fast: false
matrix:
smoke_test:
- npm
- yarn
- pnpm
- bun
- dungeon-adventure
- terraform
- trpc-api
- fast-api
- react-website
- license-sync
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Download build artifacts
uses: actions/download-artifact@v8
with:
name: build-artifact
path: dist
- uses: ./.github/actions/init-monorepo
with:
aws-docker-login-role-arn: ${{ secrets.AWS_DOCKER_LOGIN_ROLE_ARN }}
- name: Smoke Test - ${{ matrix.smoke_test }}
run: pnpm nx run @aws/nx-plugin-e2e:test -t "smoke test - ${{ matrix.smoke_test }}"
smoke_tests_windows:
name: Windows Smoke Tests - ${{matrix.smoke_test}}
runs-on: windows-latest
needs: build
strategy:
fail-fast: false
matrix:
smoke_test:
- pnpm
- dungeon-adventure
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Download build artifacts
uses: actions/download-artifact@v8
with:
name: build-artifact
path: dist
- uses: ./.github/actions/init-monorepo
- name: Windows Smoke Test - ${{ matrix.smoke_test }}
run: pnpm nx run @aws/nx-plugin-e2e:test -t "smoke test - ${{ matrix.smoke_test }}"