Skip to content

chore(deps): Bump golang.org/x/sync from 0.4.0 to 0.5.0 #123

chore(deps): Bump golang.org/x/sync from 0.4.0 to 0.5.0

chore(deps): Bump golang.org/x/sync from 0.4.0 to 0.5.0 #123

Workflow file for this run

name: Tests
on:
push:
branches: ["main", "master"]
pull_request:
branches: ["main", "master", "release-*"]
jobs:
test:
name: Go Tests
strategy:
matrix:
go-version: ["1.18", "1.19", "1.20","1.21"]
platform: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.platform }}
timeout-minutes: 10
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Install tparse
run: go install github.com/mfridman/tparse@latest
- name: Check for .codecov.yaml
id: codecov-enabled
uses: andstor/file-existence-action@v2
with:
files: .codecov.yaml
- if: steps.codecov-enabled.outputs.files_exists == 'true'
name: Enable Go Coverage
run: echo 'COVER_OPTS=-coverprofile=coverage.txt -covermode=atomic' >> $GITHUB_ENV
- name: Test
env:
GOFLAGS: "-v -race -count=1 -json"
run: go test $COVER_OPTS ./... | tparse -all -notests -format markdown >> $GITHUB_STEP_SUMMARY
- name: Verify git clean
shell: bash
run: |
if [[ -z "$(git status --porcelain)" ]]; then
echo "${{ github.repository }} up to date."
else
echo "${{ github.repository }} is dirty."
echo "::error:: $(git status)"
exit 1
fi
- if: steps.codecov-enabled.outputs.files_exists == 'true'
name: Produce Codecov Report
uses: codecov/codecov-action@v3