Files
terraform-provider-unifi/.github/workflows/ci.yaml
dependabot[bot] d0552345cd Bump golangci/golangci-lint-action from 3.1.0 to 3.2.0 (#237)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.1.0...v3.2.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-12 10:16:39 +10:00

38 lines
777 B
YAML

---
on:
pull_request: {}
push:
branches:
- "main"
tags:
- "v*"
env:
GO_VERSION: "1.16"
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/cache@v2"
with:
path: "~/go/pkg/mod"
key: "${{ runner.os }}-gomod-${{ hashFiles('**/go.sum') }}"
restore-keys: |
${{ runner.os }}-gomod-
- uses: "actions/setup-go@v3"
with:
go-version: "${{ env.GO_VERSION }}"
- run: "go build ./..."
lint:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-go@v3"
with:
go-version: "${{ env.GO_VERSION }}"
- uses: "golangci/golangci-lint-action@v3.2.0"