diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index a2992ea..e0f8fb0 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -28,3 +28,26 @@ jobs: go version go test ./input/rkg_input go test ./input/mii_input + + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + if: github.event_name == 'push' + uses: actions/checkout@v4 + - name: Checkout (PR) + if: github.event_name == 'pull_request_target' + uses: actions/checkout@v4 + with: + ref: "refs/pull/${{ github.event.number }}/merge" + + - name: Setup Go environment + uses: actions/setup-go@v5.0.1 + with: + go-version: '1.22' + cache: true + + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: v1.60 \ No newline at end of file