diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index d664b9e..c88b7c1 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -2,42 +2,45 @@ name: CI Checks on: push jobs: + lint: + name: Lint Application + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ^1.23 + - uses: arduino/setup-task@v2 + + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: v1.60 test: name: Test Application runs-on: ubuntu-latest + needs: lint steps: - - name: Install Task - uses: arduino/setup-task@v2 - - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - - - name: Set up Go 1.x - uses: actions/setup-go@v5 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: ^1.23 - cache: false # https://github.com/actions/setup-go/issues/403 - + go-version: stable + - uses: arduino/setup-task@v2 + - name: Run Test run: task test - + build: name: Build App runs-on: ubuntu-latest needs: test steps: - - name: Install Task - uses: arduino/setup-task@v2 - - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - - - name: Set up Go 1.x - uses: actions/setup-go@v5 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: ^1.23 - cache: false # https://github.com/actions/setup-go/issues/403 - + go-version: stable + - uses: arduino/setup-task@v2 + - name: Build run: task build