-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): split release and review jobs into different workflows
This fixes goreleaser failing on PRs
- Loading branch information
1 parent
21fe294
commit a739f46
Showing
2 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
name: CI | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
make: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Sage | ||
uses: einride/sage/actions/setup@master | ||
|
@@ -20,22 +18,6 @@ jobs: | |
- name: Make | ||
run: make | ||
|
||
- name: Report Code Coverage | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./build/coverage/go-test.txt | ||
fail_ci_if_error: true | ||
|
||
release: | ||
needs: [make] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Sage | ||
uses: einride/sage/actions/setup@master | ||
with: | ||
go-version: 1.19 | ||
|
||
- name: Create Release | ||
uses: go-semantic-release/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Review | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
make: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Sage | ||
uses: einride/sage/actions/setup@master | ||
with: | ||
go-version: 1.19 | ||
|
||
- name: Make | ||
run: make | ||
|
||
- name: Report Code Coverage | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./build/coverage/go-test.txt | ||
fail_ci_if_error: true |