Skip to content

chore: package publish preparation #9

chore: package publish preparation

chore: package publish preparation #9

name: Frontend
on:
push:
paths:
- "frontend/**"
- ".github/workflows/code_check_frontend.yml"
defaults:
run:
working-directory: frontend
jobs:
# Uncomment once tests are implemented
# test:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Cache dependencies
# uses: actions/cache@v2
# with:
# path: node_modules
# key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
# - name: Set up Node.js & Install dependencies
# uses: actions/setup-node@v4
# - run: npm ci
# - name: 🧪 Test
# run: |
# npm run test
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
- name: Set up Node.js
uses: actions/setup-node@v4
- run: NODE_OPTIONS=--max_old_space_size=8192 npm ci
- name: 👕 Lint
run: |
npm run lint
type_check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
- name: Set up Node.js
uses: actions/setup-node@v4
- run: NODE_OPTIONS=--max_old_space_size=8192 npm ci
- name: 🔍 Type Check
run: |
npm run tsc