Skip to content

Commit 795b803

Browse files
committed
ci: adds race detector test to ci and replaces redundant test steps with a workflow call
1 parent f2de880 commit 795b803

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/deploy.yml

+3-11
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,13 @@ env:
1313
PASSAGE_AUTH_TOKEN: ${{ secrets.PASSAGE_AUTH_TOKEN }}
1414

1515
jobs:
16+
run-test-workflow:
17+
uses: ./.github/workflows/on-pull-request.yml
18+
1619
build:
1720
name: Create Release
1821
runs-on: ubuntu-latest
1922
steps:
20-
- name: Install Go
21-
uses: actions/setup-go@v4
22-
with:
23-
go-version: '1.20.14'
24-
25-
- name: Checkout code
26-
uses: actions/checkout@v2
27-
28-
- name: Test
29-
run: go test ./...
30-
3123
- name: Checkout code
3224
uses: actions/checkout@v2
3325
with:

.github/workflows/on-pull-request.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Run Tests
22

3-
on:
3+
on:
4+
workflow_call:
45
workflow_dispatch:
56
pull_request:
67

@@ -26,3 +27,6 @@ jobs:
2627

2728
- name: Test
2829
run: go test ./...
30+
31+
- name: Test with race detector
32+
run: go test -race -run TestAppJWKSCacheWriteConcurrency

0 commit comments

Comments
 (0)