forked from mkaczanowski/packer-builder-arm
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (38 loc) · 970 Bytes
/
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
name: Lint
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
pre-commit:
# install and run locally via e.g.:
# brew install pre-commit shellcheck && pre-commit run -a
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Packer
uses: hashicorp-contrib/setup-packer@v3
with:
packer-version: 1.10.0
- uses: actions/setup-go@v5.0.2
with:
go-version: '1.23'
- uses: actions/setup-python@v5
- uses: pre-commit/action@v3.0.1
golangci:
# install and run locally via e.g.:
# brew install golangci-lint && golangci-lint run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5.0.2
with:
go-version: '1.23'
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.1
args: --timeout=3m