From 891878abc53495aa802ffb139f7a25b62901a181 Mon Sep 17 00:00:00 2001 From: Nick Schuch Date: Thu, 23 Nov 2023 14:31:40 +1000 Subject: [PATCH] Adds fmt and vet --- .github/workflows/fmt.yml | 19 +++++++++++++++++++ .github/workflows/vet.yml | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/fmt.yml create mode 100644 .github/workflows/vet.yml diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml new file mode 100644 index 0000000..31426ff --- /dev/null +++ b/.github/workflows/fmt.yml @@ -0,0 +1,19 @@ +name: 📋 Format + +on: + push + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: ⬇️ Git clone the repository + uses: actions/checkout@v3 + + - name: 📦 Install Go + uses: actions/setup-go@v3 + with: + go-version: '1.21' + + - name: 📋 Gofmt + run: go fmt ./... diff --git a/.github/workflows/vet.yml b/.github/workflows/vet.yml new file mode 100644 index 0000000..dae51c7 --- /dev/null +++ b/.github/workflows/vet.yml @@ -0,0 +1,19 @@ +name: 📋 Vet + +on: + push + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: ⬇️ Git clone the repository + uses: actions/checkout@v3 + + - name: 📦 Install Go + uses: actions/setup-go@v3 + with: + go-version: '1.21' + + - name: 📋 Vet + run: go vet ./...