diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index 38b7a71..6c3ab23 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -4,6 +4,9 @@ on: workflow_call: workflow_dispatch: pull_request: + push: + branches: + - PSG-5780-sdk-test-go env: PASSAGE_APP_ID: ${{ secrets.PASSAGE_APP_ID }} @@ -12,44 +15,44 @@ env: PASSAGE_AUTH_TOKEN: ${{ secrets.PASSAGE_AUTH_TOKEN }} jobs: - lint: - name: Lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: '1.21' - - name: Lint - uses: golangci/golangci-lint-action@v6 - with: - version: v1.60 - format: - name: Format - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: '1.21' - - name: Format - run: | - if [[ $(gofmt -s -d .) ]]; then - echo "Run 'gofmt -s -w .' to format code." - exit 1 - fi - test: - name: Test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: '1.21' - - name: Test - run: go test ./... - - name: Test with race detector - run: go test -race -run TestAppJWKSCacheWriteConcurrency + # lint: + # name: Lint + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-go@v5 + # with: + # go-version: '1.21' + # - name: Lint + # uses: golangci/golangci-lint-action@v6 + # with: + # version: v1.60 + # format: + # name: Format + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-go@v5 + # with: + # go-version: '1.21' + # - name: Format + # run: | + # if [[ $(gofmt -s -d .) ]]; then + # echo "Run 'gofmt -s -w .' to format code." + # exit 1 + # fi + # test: + # name: Test + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-go@v5 + # with: + # go-version: '1.21' + # - name: Test + # run: go test ./... + # - name: Test with race detector + # run: go test -race -run TestAppJWKSCacheWriteConcurrency test-e2e: name: Test E2E runs-on: ubuntu-latest @@ -58,6 +61,9 @@ jobs: with: require: write id: check_permission + - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref || github.ref_name }} - name: Get SDK version id: get_sdk_version if: ${{ steps.check_permission.outputs.require-result == 'true' }} diff --git a/go.mod b/go.mod index a6da4b2..5aec6ce 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/passageidentity/passage-go/v2 +module github.com/passageidentity/passage-go/v3 go 1.21