-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (84 loc) · 3.04 KB
/
pr_verify.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
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
103
104
105
106
name: All Verifications (PR)
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
terraform:
name: Verify linting of Terraform files
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: xom9ikk/dotenv@eff1dce037c4c0143cc4180a810511024c2560c0 # v2.0.0
- uses: extractions/setup-just@95b912dc5d3ed106a72907f2f9b91e76d60bdb76 # v1.5.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
just-version: '${{ env.JUST_VERSION }}'
- uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # v2.0.3
with:
terraform_version: ${{ env.TERRAFORM_VERSION }}
- uses: terraform-linters/setup-tflint@ba6bb2989f94daf58a4cc6eac2c1ca7398a678bf # v3.0.0
name: Setup TFLint
with:
tflint_version: v${{ env.TFLINT_VERSION }}
- name: Recursive analysis of Terraform files
run: just tf-fmt-check
- name: TFLint analysis of Terraform files
run: just tflint
python:
name: Verify Python projects
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: xom9ikk/dotenv@eff1dce037c4c0143cc4180a810511024c2560c0 # v2.0.0
- uses: extractions/setup-just@95b912dc5d3ed106a72907f2f9b91e76d60bdb76 # v1.5.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
just-version: '${{ env.JUST_VERSION }}'
- name: Install dependencies
working-directory: saas/control_app/src
run: just py-install
- name: Run formatter
working-directory: saas/control_app/src
run: just py-format-check
- name: Run lint
working-directory: saas/control_app/src
run: just py-lint
- name: Run test
working-directory: saas/control_app/src
run: just py-test
typescript:
name: Verify TS projects
runs-on: ubuntu-20.04
steps:
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: xom9ikk/dotenv@eff1dce037c4c0143cc4180a810511024c2560c0 # v2.0.0
- uses: extractions/setup-just@95b912dc5d3ed106a72907f2f9b91e76d60bdb76 # v1.5.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
just-version: '${{ env.JUST_VERSION }}'
- name: Install dependencies
working-directory: saas/control_app/src
run: just ts-install
- name: Run formatter
working-directory: saas/control_app/src
run: just ts-format-check
- name: Run lint
working-directory: saas/control_app/src
run: just ts-lint
- name: Run test
working-directory: saas/control_app/src
run: just ts-test