Skip to content

ci: run interop tests #143

ci: run interop tests

ci: run interop tests #143

Workflow file for this run

on: [ push, pull_request ]
jobs:
unit:
strategy:
matrix:
go: [ "1.22.x", "1.23.x" ]
runs-on: ubuntu-latest
name: Unit tests (Go ${{ matrix.go }})
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- run: go version
- name: Run tests
run: go test -v -cover -race -shuffle=on .
- name: Run tests (32 bit)
env:
GOARCH: 386
run: go test -v -cover -coverprofile=coverage.txt -shuffle=on .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: coverage.txt
env_vars: GO=${{ matrix.go }}
token: ${{ secrets.CODECOV_TOKEN }}
integration:
strategy:
matrix:
go: [ "1.22.x", "1.23.x" ]
runs-on: ubuntu-latest
name: Integration tests (Go ${{ matrix.go }})
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- run: go version
- name: Run interop tests
run: go test -v ./integrationtests/interop/
- name: Run integration tests
run: |
for i in {1..25}; do
go test -v -race -shuffle=on ./integrationtests/self
done