commit d04a71632cb5e1d2376b0f97cd390f371d55eb81 Author: Jan K9f Date: Tue Apr 8 12:23:58 2025 +0200 Add GitHub Action to test Go code with specified version 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 ./...