-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.43 KB
/
ci.yml
File metadata and controls
48 lines (40 loc) · 1.43 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
46
47
48
name: CI
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
ci:
runs-on: ubuntu-latest
env:
GALAXY_DOMAIN: ${{ secrets.GALAXY_DOMAIN }}
GALAXY_CLIENT_ID: ${{ secrets.GALAXY_CLIENT_ID }}
GALAXY_CLIENT_SECRET: ${{ secrets.GALAXY_CLIENT_SECRET }}
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.24.5"
cache: true
- name: Install tools
run: |
go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2
- name: Format code check
run: |
make fmt
if [[ $(git status --porcelain) ]]; then
echo "Code is not formatted. Please run 'make fmt' and commit the changes."
git status --porcelain
exit 1
fi
- name: Run acceptance tests
run: make test-all