Skip to content

ci: run go tests

ci: run go tests #1

Workflow file for this run

name: Go test
on:
push:
paths:
- .github/workflows/test.yml
- src/**
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- '1.18'
- '1.19'
- '1.20'
- '1.21'
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
working-directory: src
run: go get .
- name: Test with the Go CLI
working-directory: src
run: go test