Skip to content

Commit

Permalink
ci: Implement comprehensive CI/CD workflow with build, unit, race, an…
Browse files Browse the repository at this point in the history
…d coverage tests
  • Loading branch information
prnk28 committed Dec 13, 2024
1 parent ac8c153 commit 1388a67
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
test-builds:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
name: Run Build Tests
steps:
Expand All @@ -28,7 +29,7 @@ jobs:
run: make build-motr

test-unit:
needs: [test-builds]
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
name: Run Unit Tests
steps:
Expand All @@ -47,7 +48,7 @@ jobs:

test-race:
runs-on: ubuntu-latest
needs: [test-builds]
if: github.event_name == 'merge_group'
name: Run Race Tests
continue-on-error: true
steps:
Expand All @@ -66,9 +67,8 @@ jobs:

test-cover:
runs-on: ubuntu-latest
needs: [test-builds]
if: github.event_name == 'merge_group'
name: Run Coverage Tests
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -85,7 +85,6 @@ jobs:

goreleaser-check:
if: github.event_name == 'merge_group'
needs: [test-unit]
runs-on: ubuntu-latest
name: Check GoReleaser Config
steps:
Expand All @@ -102,7 +101,7 @@ jobs:
check-latest: true

- name: Check GoReleaser Config
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser-pro
version: latest
Expand All @@ -112,7 +111,7 @@ jobs:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

- name: GoReleaser Dry Run
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser-pro
version: latest
Expand Down

0 comments on commit 1388a67

Please sign in to comment.