diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c135294..bc4e803 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index 296dfa1..8c13888 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -1,6 +1,7 @@ name: Run Tests -on: +on: + workflow_call: workflow_dispatch: pull_request: @@ -26,3 +27,6 @@ jobs: - name: Test run: go test ./... + + - name: Test with race detector + run: go test -race -run TestAppJWKSCacheWriteConcurrency