Skip to content

Commit

Permalink
ci pipeline add a lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
MKAbdElrahman committed Sep 4, 2024
1 parent 310b83d commit 60f6010
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 60f6010

Please sign in to comment.