Fix game room converter test #2469
Workflow file for this run
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: Test | |
on: push | |
jobs: | |
unit: | |
name: Unit tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: '1.18.10' | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Restore cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Run tests | |
run: | | |
make run/unit-tests | |
- name: Upload coverage to Codecov | |
run: bash <(curl -s https://codecov.io/bash) | |
integration: | |
name: Integration tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: '1.18.10' | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Restore cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Run tests | |
run: | | |
make run/integration-tests | |
- name: Upload coverage to Codecov | |
run: bash <(curl -s https://codecov.io/bash) | |
runtime-integration: | |
name: Runtime Integration tests | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
k3s-version: [v1.19.11, v1.20.7, v1.21.1] | |
env: | |
K3S_VERSION: ${{ matrix.k3s-version }} | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: '1.18.10' | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Restore cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Run tests | |
run: | | |
make run/runtime-integration-tests |