chore(deps): bump the github-actions group across 1 directory with 3 updates #9
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 tests | |
on: [ pull_request ] | |
permissions: | |
contents: write | |
pull-requests: write | |
actions: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Set up Task | |
uses: arduino/setup-task@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Has changes file | |
if: github.actor != 'dependabot[bot]' | |
uses: mach-composer/check-changie-changes-action@main | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
args: --issues-exit-code=0 --timeout=5m | |
- name: Run tests | |
run: | | |
task cover | |
mkdir -p output | |
cp coverage.out output/coverage.out | |
- name: Upload to codecov | |
uses: codecov/codecov-action@v4 | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: output | |
path: output/**/* | |
- name: build binary | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
args: build --snapshot --clean --single-target | |
env: | |
GOPATH: ${{ env.GOPATH }} |