Skip to content

Commit

Permalink
ci(SHUTTLE-750): Enable build and test job before releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
theurichde committed Aug 2, 2022
1 parent 4644105 commit ceb4117
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
build:
run_tests:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -29,12 +29,35 @@ jobs:
- name: Tests
run: |
go test -v ./...
release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
needs:
- run_tests
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.CI_GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Cache Go modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
install-only: true
- name: Run Semantic Release
- name: Run Semantic Versioning Release
uses: actions/setup-node@v2
with:
cache: npm
Expand Down

0 comments on commit ceb4117

Please sign in to comment.