mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
48 lines
945 B
YAML
48 lines
945 B
YAML
name: Test
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
go-version: ["1.21"]
|
|
arch: [ 386, amd64 ]
|
|
runs-on: ubuntu-latest
|
|
name: Test (${{matrix.arch}} 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: GOARCH=${{matrix.arch}} go test -v ./...
|
|
|
|
- name: Test API
|
|
run: cd api; GOARCH=${{matrix.arch}} go test -v ./...
|
|
|
|
test-alpine:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
tag: [ "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 ./...
|
|
|