From 9f3faafeb81fe03f5c46769c7e2b649aa7663926 Mon Sep 17 00:00:00 2001 From: Koala Yeung Date: Wed, 15 Nov 2023 12:12:04 +0800 Subject: [PATCH] github-workflows: add basic CI test --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..742ccdf --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: Go Test + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + go-version: ['1.17', '1.18', '1.19', '1.20', '1.21.x' ] + + steps: + - uses: actions/checkout@v4 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + # You can test your matrix by printing the current Go version + - name: Display Go version + run: go version