-
Notifications
You must be signed in to change notification settings - Fork 34
42 lines (41 loc) · 1.06 KB
/
ci.yml
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
name: Pull Request Flow
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
format-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: "1.3.7"
- uses: actions/setup-node@v3
with:
node-version: "16.17.0"
- run: terraform fmt **/*.tf
- run: npm --prefix frontend ci
- run: npm --prefix frontend run-script fmt
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply formatting changes
branch: ${{ github.head_ref }}
client-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.17.0"
- run: cd frontend && npm install && npm test
go-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.19"
- run: go test ./...