Skip to content

Test

Test #915

Workflow file for this run

name: Test
on:
pull_request:
merge_group:
schedule:
- cron: 0 23 * * *
env:
GO_VERSION: '1.22'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
if: matrix.os != 'windows-latest'
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/setup-go@v5
if: matrix.os == 'windows-latest'
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: go mod tidy
if: matrix.os == 'ubuntu-latest'
run: |
go mod tidy
if [ -n "$(git status --porcelain)" ]; then
echo "Run 'go mod tidy' and push it"
exit 1
fi
- name: Run non-localstack tests
if: matrix.os != 'ubuntu-latest'
run: make test-no-localstack
shell: bash
- name: Run full tests
if: matrix.os == 'ubuntu-latest'
run: make test
shell: bash