Skip to content

DXCDT-500: auth0_import.tf file creation function #28

DXCDT-500: auth0_import.tf file creation function

DXCDT-500: auth0_import.tf file creation function #28

Workflow file for this run

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@639cd343e1d3b897ff35927a75193d57cfcba299 # [email protected]
with:
version: latest
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_CLI_CLIENT_NAME: ${{ secrets.AUTH0_CLI_CLIENT_NAME }}
AUTH0_CLI_CLIENT_DOMAIN: ${{ secrets.AUTH0_CLI_CLIENT_DOMAIN }}
AUTH0_CLI_CLIENT_ID: ${{ secrets.AUTH0_CLI_CLIENT_ID }}
AUTH0_CLI_CLIENT_SECRET: ${{ secrets.AUTH0_CLI_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