From 5de1a9ad6a530a5bd733d73a70f11c2caca7bc6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fehmi=20Can=20Sa=C4=9Flam?= Date: Sun, 21 Jul 2024 15:00:43 +0200 Subject: [PATCH] Create go.yml --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..3a0f144 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + strategy: + matrix: + go-version: ["v1.22", "v1.20", "v1.19"] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...