Skip to content

Commit

Permalink
updated to test before release
Browse files Browse the repository at this point in the history
  • Loading branch information
Danushka96 committed Dec 1, 2024
1 parent 7f923a6 commit d0c3f6d
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ on:
- '.github/workflows/release.yml'

jobs:
release:
name: Create Release
test:
name: Run Tests
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
services:
mongodb:
image: mongo:latest
ports:
- 27017:27017

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
Expand All @@ -30,7 +32,18 @@ jobs:
run: go mod download

- name: Run tests
run: go test -v ./...
run: go test -v -race ./...

release:
name: Create Release
needs: test
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get latest tag
id: get_latest_tag
Expand Down

0 comments on commit d0c3f6d

Please sign in to comment.