Update module github.com/hashicorp/hcl/v2 to v2.23.0 #114
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: Go Test | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
branches: | |
- main | |
env: | |
GO111MODULE: "on" | |
permissions: | |
contents: read | |
jobs: | |
golangci-lint: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
pull-requests: read # for golangci/golangci-lint-action to fetch PRs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "^1.20" | |
check-latest: true | |
- uses: golangci/golangci-lint-action@v6.1.1 | |
with: | |
version: latest | |
args: --verbose | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# get the whole repo, not just the last commit, so | |
# we can compare changes on this branch to main | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
- uses: pre-commit/action@v3.0.1 | |
with: | |
extra_args: --from-ref origin/main --to-ref HEAD | |
build: | |
name: build & test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "^1.20" | |
- name: Go Build | |
run: make build | |
- name: Go Test | |
run: make test |