Bump @eslint/plugin-kit from 0.2.2 to 0.2.3 in /client #67
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: UI Checks | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'client/**/*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ui-checks: | |
if: github.event.pull_request.draft == false | |
name: Build & Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'yarn' | |
cache-dependency-path: 'client/yarn.lock' | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
id: cache-npm | |
with: | |
path: | | |
client/node_modules | |
~/.npm | |
${{ github.workspace }}/.next/cache | |
key: ${{ runner.os }}-modules-${{ hashFiles('client/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-modules- | |
${{ runner.os }}- | |
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} | |
name: Install dependencies | |
run: yarn workspaces focus | |
working-directory: client | |
- name: Linter | |
run: yarn eslint:check | |
working-directory: client | |
- name: Prettier | |
run: yarn prettier:check | |
working-directory: client | |
- name: Cache UI build | |
uses: actions/cache@v4 | |
id: cache-build | |
with: | |
path: client/.next | |
key: ${{ runner.os }}-build-${{ hashFiles('client/**/*.ts', 'client/**/*.tsx') }} | |
restore-keys: | | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- if: ${{ steps.cache-build.outputs.cache-hit != 'true' }} | |
name: Configure Client | |
run: | | |
echo "NEXT_PUBLIC_API_HOST = '${{ secrets.NEXT_PUBLIC_API_HOST }}' | |
NEXT_PUBLIC_SITE_LINK = '${{ secrets.NEXT_PUBLIC_SITE_LINK }}'" > .env | |
working-directory: client | |
- name: UI Unit Tests | |
run: yarn test | |
working-directory: client | |
- if: ${{ steps.cache-build.outputs.cache-hit != 'true' }} | |
name: Build UI | |
run: | | |
export dateNow=$(date +"%Y-%m-%dT%H:%M") | |
echo "export const update = '$dateNow'" > update.ts | |
yarn build | |
working-directory: client |