forked from aws/amazon-cloudwatch-agent-test
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 894 Bytes
/
Copy pathbuild-check.yml
File metadata and controls
38 lines (37 loc) · 894 Bytes
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
name: Build check
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- main
jobs:
compile:
strategy:
matrix:
os: [
ubuntu-latest,
windows-latest
# macos-latest
]
runs-on: ${{ matrix.os }}
steps:
- name: Install Terraform
uses: hashicorp/setup-terraform@v3
- name: Verify Terraform version
run: terraform --version
- uses: actions/checkout@v3
- name: Setup Go 1.19
uses: actions/setup-go@v3
with:
go-version: ~1.20.0
- name: Lint Terraform
if: runner.os == 'Linux'
run: cd terraform && make check-fmt
- name: Lint Go
if: runner.os == 'Linux'
run: make simple-lint
- name: Compile tests
run: |
echo "Compile tests"
make compile