mirror of https://github.com/fmartingr/bazaar.git
29 lines
569 B
YAML
29 lines
569 B
YAML
name: "Unit Tests"
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
go_versions:
|
|
type: string
|
|
description: Go versions to run workflow on
|
|
required: true
|
|
|
|
jobs:
|
|
test:
|
|
permissions:
|
|
contents: read
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go_version: ${{ fromJSON(inputs.go_versions) }}
|
|
name: Go ${{ matrix.go_version }} unit tests
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ${{ matrix.go_version }}
|
|
|
|
- run: make test
|