Skip to content

Commit

Permalink
Merge pull request #10 from ivan-valkov/github-actions-test-and-lint
Browse files Browse the repository at this point in the history
Add github actions for linting and tests
  • Loading branch information
ivan-valkov authored Nov 25, 2021
2 parents 6cbe43d + 9c00206 commit 9479632
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: lint
on:
pull_request:
jobs:
lint:
name: lint
if: github.repository == 'SeldonIO/seldon-core-v2' # Do not run this on forks.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16.4'
- name: lint-operator
uses: golangci/golangci-lint-action@v2
with:
version: v1.42.1
working-directory: operator
skip-go-installation: true
- name: lint-scheduler
uses: golangci/golangci-lint-action@v2
with:
version: v1.42.1
working-directory: scheduler
skip-go-installation: true
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: test
on:
pull_request:
jobs:
lint:
name: test
if: github.repository == 'SeldonIO/seldon-core-v2' # Do not run this on forks.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16.4'
- name: test-operator
run: make -C operator test
- name: test-scheduler
run: make -C scheduler test

0 comments on commit 9479632

Please sign in to comment.