acpi shutdown: correct and robust graceful shutdown #1494
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: go lint | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
golangci: | |
name: golangci-lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- uses: golangci/golangci-lint-action@v3 | |
with: | |
# Required: the version of golangci-lint is required and | |
# should be specified with patch version. | |
version: v1.52.2 | |
args: --timeout 5m --fix | |
github-token: ${{ secrets.github_token }} | |
# caching issues, see: https://github.com/golangci/golangci-lint-action/issues/244#issuecomment-1052190775 | |
skip-pkg-cache: true | |
skip-build-cache: true | |
- name: go mod tidy | |
run: | | |
go mod tidy | |
if ! (test -z "$(git ls-files --exclude-standard --others .)$(git diff .)"); then | |
git ls-files --exclude-standard --others . | |
git diff . | |
echo "ERROR: 'go mod tidy' modified the source tree." | |
exit 1 | |
fi | |
- name: make manifests | |
run: | | |
make manifests | |
if ! (test -z "$(git ls-files --exclude-standard --others .)$(git diff .)"); then | |
git ls-files --exclude-standard --others . | |
git diff . | |
echo "ERROR: 'make manifests' modified the source tree." | |
exit 1 | |
fi | |