changes in getTokens() #12
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: Pulll Request App Build | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow pull request events | |
pull_request: | |
branches: ['**'] | |
# Triggers the workflow push events but only for the main | |
push: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# Check linter, unit and e2e tests. | |
check: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Checkout files | |
uses: actions/checkout@v4 | |
- name: Install Node LTS Iron | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/iron' | |
cache: 'npm' | |
- name: Npm Cache | |
uses: actions/cache@v3 | |
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true' | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Audit | |
run: npm audit --omit=dev | |
- name: Install dependencies from lock. | |
run: npm ci | |
- name: Linter. | |
run: npm run lint:ci | |
- name: Unit tests. | |
run: npm run test:cov | |
- name: Build source code. | |
run: npm run build |