Skip to content

Commit

Permalink
Update Github flows
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardem committed Sep 30, 2024
1 parent 19d4716 commit 243dc8d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
Expand All @@ -27,9 +26,6 @@ jobs:
- name: Test API
run: go test -C api ./tests/...

- name: Build integrations
run: go build -C backend/integrations

- name: Build pipelines
run: go build -C backend/pipelines

Expand All @@ -44,6 +40,18 @@ jobs:

- name: Build statistics
run: go build -C backend/statistics
build-integrations:
runs-on: public.ecr.aws/b5q6i6w4/ylem-public-images:latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Build integrations
run: go build -C backend/integrations

- name: Build taskrunner
run: go build -C processor/taskrunner
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ jobs:
version: v1.59
working-directory: ./api
args: --timeout=5m
- name: golangci-lint for integrations
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
working-directory: ./backend/integrations
args: --timeout=5m
- name: golangci-lint for pipelines
uses: golangci/golangci-lint-action@v6
with:
Expand All @@ -50,6 +44,21 @@ jobs:
version: v1.59
working-directory: ./backend/users
args: --timeout=5m
golangci-integrations:
name: lint
runs-on: public.ecr.aws/b5q6i6w4/ylem-public-images:latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- name: golangci-lint for integrations
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
working-directory: ./backend/integrations
args: --timeout=5m
- name: golangci-lint for taskrunner
uses: golangci/golangci-lint-action@v6
with:
Expand Down

0 comments on commit 243dc8d

Please sign in to comment.