Add Github Actions Dependabot configuration & bump Action versions #96
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: pull_request | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
cache: false | |
- name: Build | |
run: go build -v ./... | |
- name: Run linters | |
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 | |
with: | |
version: latest | |
skip-pkg-cache: true | |
skip-build-cache: true | |
- name: Run tests | |
run: go test -v ./... | |
- name: Setup Copywrite | |
uses: hashicorp/[email protected] | |
- name: Check Header Compliance | |
run: copywrite headers --plan |