forked from aws-containers/retail-store-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (52 loc) · 1.33 KB
/
pr.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: "PR"
on:
pull_request:
branches:
- main
types:
- opened
- edited
- synchronize
permissions:
pull-requests: read
jobs:
semanticpr:
name: "Semantic Pull Request"
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
hooks:
name: "Hooks"
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup Env
uses: ./.github/actions/setup-env
- name: Test
run: |
devenv test
test:
name: "Project tests"
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Setup Env"
uses: ./.github/actions/setup-env
- name: Build
shell: devenv shell bash -- -e {0}
run: |
yarn nx affected --targets=build --base origin/main --parallel 1
- name: Other tasks
shell: devenv shell bash -- -e {0}
run: |
yarn nx affected --targets=lint,test:integration,test --base origin/main
- name: Containers
shell: devenv shell bash -- -e {0}
run: |
yarn nx affected --targets=container --exclude='*,!tag:container' --base origin/main