Skip to content

Commit

Permalink
chore(actions): remove unnecessary builds (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoalramos committed Aug 22, 2023
1 parent 3d850ce commit 0ec9df0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/merge-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,6 @@ jobs:
run: echo "value=`echo ${{ steps.semantic.outputs.new_release_version }} | sed -r 's|v()|\1|'`" >> $GITHUB_OUTPUT


build:
if: needs.prepare.outputs.new_release == 'true'

name: Build
runs-on: ubuntu-22.04

needs: prepare

steps:
- uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'

- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build for test
run: make build


releases:
if: needs.prepare.outputs.new_release == 'true'

Expand All @@ -80,7 +50,6 @@ jobs:

needs:
- prepare
- build

steps:
- name: Create Pre Release
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,3 @@ jobs:
- name: Run vet
run: make vet

- name: Run test
run: make build

0 comments on commit 0ec9df0

Please sign in to comment.