Bump golang.org/x/text from 0.14.0 to 0.16.0 #784
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
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
name: Test | |
permissions: | |
contents: read | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.19.x,1.20.x] | |
platform: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install staticcheck | |
run: go install honnef.co/go/tools/cmd/staticcheck@latest | |
shell: bash | |
- name: Install golint | |
run: go install golang.org/x/lint/golint@latest | |
shell: bash | |
- name: Update PATH | |
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
shell: bash | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Fmt | |
if: matrix.platform != 'windows-latest' # :( | |
run: "diff <(gofmt -d .) <(printf '')" | |
shell: bash | |
- name: Vet | |
run: go vet ./... | |
- name: Staticcheck | |
run: staticcheck ./... | |
#- name: Lint | |
# run: golint ./... | |
- name: Test | |
env: | |
S3DEPLOY_TEST_KEY: ${{ secrets.S3DEPLOY_TEST_KEY }} | |
S3DEPLOY_TEST_SECRET: ${{ secrets.S3DEPLOY_TEST_SECRET }} | |
run: go test -race ./... -coverpkg=./... -coverprofile=coverage.txt -covermode=atomic | |
- name: Upload coverage | |
if: success() && matrix.platform == 'ubuntu-latest' && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' | |
run: | | |
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step | |
curl -Os https://uploader.codecov.io/latest/linux/codecov | |
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM | |
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig | |
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM | |
shasum -a 256 -c codecov.SHA256SUM | |
chmod +x codecov | |
./codecov |