chore: bump github.com/spf13/afero from 1.11.0 to 1.12.0 #29
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: Pull Request | |
on: | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Init | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21.5' | |
- name: Install Dependencies | |
run: go get -v -t -d ./... | |
- name: Lint | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
curl -s https://api.github.com/repos/golangci/golangci-lint/releases/latest | grep browser_download_url | grep linux-amd64 | cut -d : -f 2,3 | tr -d \" | wget -i - | |
tar -xvf golangci-lint-*-linux-amd64.tar.gz --strip=1 --no-anchored golangci-lint | |
./golangci-lint run ./... | |
- name: Test | |
run: go test -v $(go list ./... | grep -v vendor | grep -v mocks) -race -coverprofile=coverage.txt -covermode=atomic | |
- name: Upload Code Coverage | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.txt | |
flags: coverage | |
name: release | |
fail_ci_if_error: false |