2023-12-05 07:45:40 -06:00
|
|
|
name: i386 linux tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
2024-05-14 08:46:11 -05:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-05 07:45:40 -06:00
|
|
|
- name: Set up Go
|
2024-05-14 08:46:11 -05:00
|
|
|
uses: actions/setup-go@v5
|
2023-12-05 07:45:40 -06:00
|
|
|
with:
|
|
|
|
go-version: 1.21.4
|
2024-06-04 11:02:47 -05:00
|
|
|
cache: false
|
2024-06-04 10:30:50 -05:00
|
|
|
|
|
|
|
- name: Cache Go modules
|
|
|
|
id: cache-go-mod
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cache/go-build
|
|
|
|
~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-go-
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: go mod download
|
|
|
|
|
2023-12-05 07:45:40 -06:00
|
|
|
- name: Run tests
|
2024-01-12 08:14:03 -06:00
|
|
|
run: go test -short ./...
|
2023-12-05 07:45:40 -06:00
|
|
|
env:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: 386
|