Skip to content

Commit

Permalink
Split ci workflow to build and test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkraic committed Aug 8, 2024
1 parent d9b9317 commit 9d87651
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22"

- name: Build
run: make build-only
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go lint
name: Lint

on: [push]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Go build and test
name: Test

on: [push]

jobs:
ci:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -13,8 +13,5 @@ jobs:
with:
go-version: "1.22"

- name: Build
run: make build-only

- name: Test
run: make test-only race
2 changes: 1 addition & 1 deletion .github/workflows/vulncheck.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go vulncheck
name: Vulncheck

on: [push]

Expand Down

0 comments on commit 9d87651

Please sign in to comment.