Skip to content

Commit

Permalink
try patching the go.mod file
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoffatt committed Nov 30, 2023
1 parent 8e2d915 commit c0a1867
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
test:
name: run tests with code coverage
name: run tests
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -31,6 +31,28 @@ jobs:
run: curl -L -o /usr/local/bin/aws-lambda-rie https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie-x86_64
- run: chmod +x /usr/local/bin/aws-lambda-rie

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: modhack
run: if [[ ${{ matrix.go }} < "1.16" ]]; then sed -i.bak 's/.*retract .*//' go.mod; fi

- name: go test
run: go test -v -race ./...

coverage:
name: run tests with coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.20"

- name: install lambda runtime interface emulator
run: curl -L -o /usr/local/bin/aws-lambda-rie https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie-x86_64
- run: chmod +x /usr/local/bin/aws-lambda-rie

- name: Check out code into the Go module directory
uses: actions/checkout@v3

Expand All @@ -43,5 +65,5 @@ jobs:
file: ./coverage.txt
env_vars: GO
env:
GO: ${{ matrix.go }}
GO: "1.20"

0 comments on commit c0a1867

Please sign in to comment.