Skip to content

docs: add CLAUDE.md agent guidelines for auth0-cli #2634

docs: add CLAUDE.md agent guidelines for auth0-cli

docs: add CLAUDE.md agent guidelines for auth0-cli #2634

Workflow file for this run

name: Main Workflow
on:
pull_request: {}
push:
branches: [ "main", "beta" ]
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Set up Go
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4.3.0
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@1e7e51e771db61008b38414a730f564565cf7c20 # 9.2.0
with:
install-mode: "goinstall"
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Set up Go
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4.3.0
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@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
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.
# Only run on pushes to main or PRs targeting main.
if: github.event.pull_request.head.repo.fork == false && (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot') &&
(github.ref == 'refs/heads/main' || github.base_ref == 'main')
steps:
- name: Check out the code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 2
- name: Set up Go
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4.3.0
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@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: unit-tests-artifact
path: ./unit-tests-artifact
- name: Update codecov report
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # pin@3.1.4
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Set up Go
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4.3.0
with:
go-version-file: go.mod
check-latest: true
- name: Ensure binaries can be built for all platforms
run: make build-all-platforms