From d04a71632cb5e1d2376b0f97cd390f371d55eb81 Mon Sep 17 00:00:00 2001 From: Jan K9f Date: Tue, 8 Apr 2025 12:23:58 +0200 Subject: [PATCH] Add GitHub Action to test Go code with specified version --- test/action.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/action.yml diff --git a/test/action.yml b/test/action.yml new file mode 100644 index 0000000..2d4b05c --- /dev/null +++ b/test/action.yml @@ -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 ./...