Fix Custom Domains Data Display and Delete Method for All Commands (#… #890
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main Workflow | |
on: | |
pull_request: {} | |
push: | |
branches: [ "main" ] | |
concurrency: | |
group: one-at-time | |
cancel-in-progress: false | |
permissions: | |
contents: read | |
jobs: | |
checks: | |
name: Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
check-latest: true | |
- name: Check that docs were generated | |
run: make check-docs | |
- name: Check for linting errors | |
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1 | |
with: | |
install-mode: "goinstall" | |
version: 2059b18a39d559552839476ba78ce6acaa499b43 # v1.59.0 | |
args: -v -c .golangci.yml | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
check-latest: true | |
- name: Run unit tests | |
run: make test-unit | |
- name: Upload unit test coverage | |
uses: actions/upload-artifact@v3 | |
with: | |
name: unit-tests-artifact | |
path: ./coverage-unit-tests.out | |
integration-tests: | |
name: Integration Tests | |
runs-on: ubuntu-latest | |
needs: unit-tests | |
# Skip running if the PR is coming from a fork or is created by dependabot or snyk due to missing repo secrets. | |
if: github.event.pull_request.head.repo.fork == false && (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot') | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
check-latest: true | |
- name: Run integration tests | |
shell: bash | |
run: make test-integration | |
env: | |
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }} | |
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }} | |
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }} | |
- name: Download unit test coverage | |
uses: actions/download-artifact@v3 | |
with: | |
name: unit-tests-artifact | |
path: ./unit-tests-artifact | |
- name: Update codecov report | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # [email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./unit-tests-artifact/coverage-unit-tests.out,./coverage-integration-tests.out | |
fail_ci_if_error: false | |
verbose: true | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
check-latest: true | |
- name: Ensure binaries can be built for all platforms | |
run: make build-all-platforms |