Add GitHub Action to test Go code with specified version

This commit is contained in:
Jan K9f 2025-04-08 12:23:58 +02:00
commit d04a71632c
Signed by: jank
GPG key ID: 22BEAC760B3333D6

22
test/action.yml Normal file
View file

@ -0,0 +1,22 @@
name: "Go test"
description: "Tests go code"
inputs:
GO_VERSION:
description: "Go version to use"
required: true
runs:
using: "composite"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Install go"
uses: actions/setup-go@v5
with:
go-version: ${{ inputs.GO_VERSION }}
- name: "Print go version"
run: go version
- name: Test everything
run: go test ./...