mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
47 lines
877 B
YAML
47 lines
877 B
YAML
name: Test
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
go-version: ["1.20", "1.21"]
|
|
runs-on: ubuntu-latest
|
|
name: Test (go v${{ matrix.go-version }})
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Test
|
|
run: go test -v ./...
|
|
|
|
- name: Test API
|
|
run: cd api; go test -v ./...
|
|
|
|
test-alpine:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
tag: ["1.20-alpine3.19", "1.21-alpine3.19"]
|
|
runs-on: ubuntu-latest
|
|
name: Test alpine (${{ matrix.tag }})
|
|
container:
|
|
image: golang:${{ matrix.tag }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Test
|
|
run: go test -v ./...
|
|
|
|
- name: Test API
|
|
run: cd api; go test -v ./...
|
|
|