Skip to content

Add MBin Magazine Support (+ remove KBin support) #28

Add MBin Magazine Support (+ remove KBin support)

Add MBin Magazine Support (+ remove KBin support) #28

name: frontend-checks
on:
# push:
# paths:
# - frontend/**
pull_request:
paths:
- frontend/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
frontend-checks-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 22.12.0
uses: actions/setup-node@v3
with:
node-version: 22.12.0
# Install + Cache Frontend Dependencies
- name: Cache Node Modules | Frontend
id: cache-frontend-yarn
uses: actions/cache@v3
env:
cache-name: cache-frontend-yarn
with:
path: ./frontend/node_modules/
key: cache-frontend-yarn-${{ hashFiles('frontend/yarn.lock') }}
- name: Install Node Modules | Frontend
if: steps.cache-frontend-yarn.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
working-directory: ./frontend
- name: Check Style | Frontend
run: yarn format:check
working-directory: ./frontend
frontend-checks-types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 22.12.0
uses: actions/setup-node@v3
with:
node-version: 22.12.0
# Install + Cache Frontend Dependencies
- name: Cache Node Modules | Frontend
id: cache-frontend-yarn
uses: actions/cache@v3
env:
cache-name: cache-frontend-yarn
with:
path: ./frontend/node_modules/
key: cache-frontend-yarn-${{ hashFiles('frontend/yarn.lock') }}
- name: Install Node Modules | Frontend
if: steps.cache-frontend-yarn.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
working-directory: ./frontend
- name: Check Types | Frontend
run: yarn check:ts
working-directory: ./frontend