chore(deps): update module github.com/BurntSushi/toml to v1.4.0 #14
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
# GitHub Actions workflow to lint the locale files. | |
name: "Lint" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
merge_group: | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}" | |
cancel-in-progress: "${{ github.event.action != 'merge_group' }}" | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
name: "Lint" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: "Setup Go stable" | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5 | |
with: | |
go-version: "stable" | |
cache: true | |
check-latest: true | |
- name: "Download dependencies" | |
run: go mod download | |
- name: "Verify dependencies" | |
run: go mod verify | |
- name: "Build" | |
run: go build -v ./... | |
- name: "Test" | |
run: go test -race -v ./... | |
- name: "Lint" | |
run: | | |
go build -trimpath ./cmd/lang-lint | |
./lang-lint |