-
Notifications
You must be signed in to change notification settings - Fork 24
48 lines (47 loc) · 1.18 KB
/
pull_request.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
name: "Pull Request"
on: pull_request
jobs:
docs:
name: "Ensure 'make docs' has been run"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate Docs
run: |
export PATH=$PATH:/home/runner/go/bin
make docs-prepare
tfplugindocs generate
- name: Validate No Changes
run: |
git diff --exit-code
gofmt:
name: "Ensure 'go fmt' has been run"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run gofmt
run: |
go fmt
- name: Validate No Changes
run: |
git diff --exit-code
equivalence:
name: "Ensure 'make equivalence' has been run"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run equivalence test
run: |
make equivalence
- name: Validate No Changes
run: |
git diff --exit-code