generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 219
45 lines (42 loc) · 1.2 KB
/
build-lint-test.yml
File metadata and controls
45 lines (42 loc) · 1.2 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
name: Build, lint and test
on:
pull_request:
branches:
- main
merge_group:
branches:
- main
push:
branches:
- main
permissions:
id-token: write
actions: read
contents: read
security-events: write
deployments: write
jobs:
build:
name: build${{ matrix.react != 16 && format(' (React {0})', matrix.react) || '' }}
strategy:
matrix:
react: [16, 18]
uses: cloudscape-design/actions/.github/workflows/build-lint-test.yml@main
secrets: inherit
with:
artifact-path: pages/lib/static-default
artifact-name: dev-pages-react${{ matrix.react }}
react-version: ${{ matrix.react }}
deploy:
needs: build
name: deploy${{ matrix.react != 16 && format(' (React {0})', matrix.react) || '' }}
# skip this job for external contributions as they aren't supported and cause the job's failure
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
strategy:
matrix:
react: [16, 18]
uses: cloudscape-design/actions/.github/workflows/deploy.yml@main
secrets: inherit
with:
artifact-name: dev-pages-react${{ matrix.react }}
deployment-path: pages/lib/static-default