Skip to content

Commit

Permalink
update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoffatt committed Nov 30, 2023
1 parent a66fa3d commit dc615d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ jobs:
uses: actions/checkout@v3

- name: Edit the go.mod file to allow tests to run for versions of go before 1.16
run: if [[ ${{ matrix.go }} < "1.16" ]]; then sed -i.bak 's/^.*retract.*$//' go.mod; fi
run: >
if [[ ${{ matrix.go }} < "1.16" ]]; then
sed -i.bak 's/^.*retract.*$//' go.mod
else
echo "no edit required"
fi
- name: go test
run: go test -v -race ./...
Expand Down

0 comments on commit dc615d1

Please sign in to comment.