This repository was archived by the owner on Jan 26, 2024. It is now read-only.
chore(deps): update minor and patch #868
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 | |
on: | |
push: | |
branches: | |
- main | |
- release/* | |
pull_request: | |
branches: | |
- main | |
- release/* | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup access to qlik npm registry | |
shell: bash | |
run: bash ${GITHUB_WORKSPACE}/.github/scripts/create-npmrc.sh | |
env: | |
GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_CI_TOKEN }} | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8.6.8 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
shell: bash | |
run: pnpm install | |
- name: Generate locale | |
run: pnpm locale:generate | |
- name: Prettier Format | |
run: pnpm format:check | |
- name: Lint | |
run: pnpm lint | |
- name: Type check | |
run: pnpm types:check | |
locale: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup access to qlik npm registry | |
shell: bash | |
run: bash ${GITHUB_WORKSPACE}/.github/scripts/create-npmrc.sh | |
env: | |
GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_CI_TOKEN }} | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8.6.8 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
shell: bash | |
run: pnpm install | |
# `locale:generate` step happens before running build | |
# if it fails in generation or verification step then this job will fail | |
- name: Build | |
run: pnpm build:prod | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup access to qlik npm registry | |
shell: bash | |
run: bash ${GITHUB_WORKSPACE}/.github/scripts/create-npmrc.sh | |
env: | |
GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_CI_TOKEN }} | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8.6.8 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
shell: bash | |
run: pnpm install | |
- name: Generate locale | |
run: pnpm locale:generate | |
- name: Run unit test | |
run: pnpm test:coverage | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup access to qlik npm registry | |
shell: bash | |
run: bash ${GITHUB_WORKSPACE}/.github/scripts/create-npmrc.sh | |
env: | |
GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_CI_TOKEN }} | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8.6.8 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
shell: bash | |
run: pnpm install | |
- name: Build | |
run: pnpm build:prod |