feat(auth, oauth): add native oauth support / no external packages needed #3890
Workflow file for this run
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: Code Quality Checks | |
on: | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- main | |
- v14-release | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
linting: | |
name: Lint | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Configure JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
name: Yarn Cache | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }} | |
restore-keys: ${{ runner.os }}-yarn-v1 | |
- name: Yarn Install | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 3 | |
retry_wait_seconds: 30 | |
max_attempts: 3 | |
command: yarn --no-audit --prefer-offline | |
- name: Lint | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 3 | |
retry_wait_seconds: 10 | |
max_attempts: 3 | |
command: yarn lint | |
typescript: | |
name: TypeScript Build Validation | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
name: Yarn Cache | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }} | |
restore-keys: ${{ runner.os }}-yarn-v1 | |
- name: Yarn Install | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 3 | |
retry_wait_seconds: 30 | |
max_attempts: 3 | |
command: yarn --no-audit --prefer-offline | |
- name: Lint | |
run: yarn tsc:compile | |
typedoc: | |
name: TypeDoc Generation | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
name: Yarn Cache | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-with-website-v1-${{ hashFiles('yarn.lock') }} | |
restore-keys: ${{ runner.os }}-yarn-with-website-v1 | |
- name: Yarn Install | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 3 | |
retry_wait_seconds: 30 | |
max_attempts: 3 | |
command: yarn --no-audit --prefer-offline | |
- name: Yarn Install (Website) | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 3 | |
retry_wait_seconds: 30 | |
max_attempts: 3 | |
command: cd website && yarn --no-audit --prefer-offline | |
- name: Generate TypeDoc | |
run: node -e "require('./website/scripts/generate-typedoc').generateTypedoc()" |