This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Handover to Kantive #137
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
env: | |
FORCE_COLOR: true | |
jobs: | |
build: | |
name: Go | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: | |
- '1.22' | |
- '1.21' | |
steps: | |
- name: Set up Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Test unit | |
run: go run gotest.tools/gotestsum@latest | |
--format testname -- | |
-count=1 | |
-race | |
-timeout=5m | |
-short | |
./... | |
- name: Test e2e | |
run: go run gotest.tools/gotestsum@latest | |
--format testname -- | |
-tags=e2e | |
-count=1 | |
-timeout=10m | |
./tests/... |