-
Notifications
You must be signed in to change notification settings - Fork 48
49 lines (40 loc) · 1.04 KB
/
github-actions-lint.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
43
44
45
46
47
48
49
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
linters:
name: Linters
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '^1.18'
- run: |
curl -L https://github.com/golangci/golangci-lint/releases/download/v1.51.2/golangci-lint-1.51.2-linux-amd64.tar.gz \
| tar --wildcards -xzf - --strip-components 1 "**/golangci-lint"
- run: ./golangci-lint run -c .golangci.yml -v --timeout=10m
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: '1.3.6'
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: |
pip install ansible-core
- uses: actions/setup-go@v3
with:
go-version: '^1.18'
- name: Run tests
run: |
make test