[IOPID-2566] Refactor AuthErrorComponent #15868
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
on: | |
- pull_request | |
- workflow_call | |
jobs: | |
static-checks: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-pr-staticcheck-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
steps: | |
- id: checkout | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
- id: setup | |
uses: ./.github/actions/setup-composite | |
- id: run-tsc | |
run: yarn tsc:noemit | |
- id: run-lint | |
run: yarn lint | |
- id: run-prettier | |
run: yarn prettier:check | |
unit-test: | |
runs-on: ubuntu-latest | |
environment: dev | |
needs: static-checks | |
strategy: | |
matrix: | |
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
steps: | |
- id: checkout | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
- id: setup-node | |
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | |
with: | |
node-version-file: ".node-version" | |
- id: yarn-cache | |
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 | |
env: | |
cache-name: cache-node-modules | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
- id: install-packages | |
run: yarn install --frozen-lockfile | |
- id: download-locales | |
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1 | |
with: | |
name: locales | |
path: locales/ | |
- id: download-api-client | |
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1 | |
with: | |
name: api-client | |
path: definitions/ | |
- id: run-test | |
run: yarn test:ci --shard=${{ matrix.shard }}/${{ strategy.job-total }} | |
- id: codecov-script | |
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |