Skip to content

Commit

Permalink
ci: adds race detector test to ci and replaces redundant test steps w…
Browse files Browse the repository at this point in the history
…ith a workflow call
  • Loading branch information
ctran88 committed Oct 17, 2024
1 parent 127523b commit 8cb184a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,13 @@ env:
PASSAGE_AUTH_TOKEN: ${{ secrets.PASSAGE_AUTH_TOKEN }}

jobs:
run-test-workflow:
uses: ./.github/workflows/on-pull-request.yml

build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.20.14'

- name: Checkout code
uses: actions/checkout@v2

- name: Test
run: go test ./...

- name: Checkout code
uses: actions/checkout@v2
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Run Tests

on:
on:
workflow_call:
workflow_dispatch:
pull_request:

Expand All @@ -26,3 +27,6 @@ jobs:

- name: Test
run: go test ./...

- name: Test with race detector
run: go test -race -run TestAppJWKSCacheWriteConcurrency

0 comments on commit 8cb184a

Please sign in to comment.