diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml new file mode 100644 index 00000000..c6068149 --- /dev/null +++ b/.github/workflows/matrix.yml @@ -0,0 +1,27 @@ + +name: Go Linter + +on: + workflow_dispatch: + +jobs: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + go: ['1.23','1.22'] + steps: + - name: Setup Go + uses: actions/checkout@v6 + with: + go-version: ${{ matrix.go }} + go-version-file: 'go.mod' + cache-dependency-path: go.sum + + - name: Run go Formatter + run: go fmt + working-directory: backend + + - name: Run go vet + run: go vet + working-directory: backend \ No newline at end of file