Fix Zahur/Wesley Costs #14998
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 | |
on: | |
push: | |
branches: | |
- master | |
- bso | |
pull_request: | |
jobs: | |
ESLint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v3 | |
- name: Use Node.js 18.12.0 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.12.0 | |
cache: yarn | |
- name: Restore CI Cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-18-${{ hashFiles('**/yarn.lock') }} | |
- name: Install Dependencies | |
run: yarn --frozen-lockfile | |
- name: Generate Prisma Client | |
run: yarn gen | |
- name: Run ESLint on changed files | |
uses: tj-actions/eslint-changed-files@v21 | |
with: | |
skip_annotations: true | |
config_path: ".eslintrc.json" | |
ignore_path: ".eslintignore" | |
file_extensions: | | |
**/*.ts | |
**/*.tsx | |
Typescript: | |
name: Typescript | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v3 | |
- name: Use Node.js 18.12.0 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.12.0 | |
cache: yarn | |
- name: Restore CI Cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-18-${{ hashFiles('**/yarn.lock') }} | |
- name: Install Dependencies | |
run: yarn --frozen-lockfile | |
- name: Copy Configuration | |
run: | | |
pushd src && | |
cp config.example.ts config.ts && | |
popd | |
- name: Copy env | |
run: cp .env.example .env | |
- name: Generate Prisma Client | |
run: yarn gen | |
- name: Build code | |
run: yarn build |