v3: implement Items() method for use with range keyword #195
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: Run CI Tests | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- README.md | |
- .gitignore | |
pull_request: | |
paths-ignore: | |
- README.md | |
- .gitignore | |
jobs: | |
run-copywrite: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- uses: hashicorp/setup-copywrite@v1.1.3 | |
- name: verify copyright | |
run: | | |
copywrite headers --plan | |
run-lint: | |
timeout-minutes: 10 | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- uses: hashicorp/setup-golang@v3 | |
with: | |
version-file: go.mod | |
- uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0 | |
with: | |
version: v1.60.1 | |
skip-cache: true | |
run-tests: | |
timeout-minutes: 10 | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- uses: hashicorp/setup-golang@v3 | |
with: | |
version-file: go.mod | |
- name: Run Go Vet | |
run: | | |
go vet ./... | |
- name: Run Go Fmt | |
run: | | |
files=$(go fmt ./...) | |
if [ -n "$files" ]; then | |
echo "Please run gofmt on these files ..." | |
echo "$files" | |
exit 1 | |
fi | |
- name: Run Go Test | |
run: | | |
go test -race -v ./... | |