Files
terraform-provider-unifi/.github/workflows/ci.yaml
dependabot[bot] 0ee4baca73 Bump actions/cache from 3.0.2 to 3.0.4 (#248)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.2 to 3.0.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.2...v3.0.4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 17:09:46 +10:00

38 lines
781 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@v3.0.4"
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"