This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
Merge pull request #39 from SELab-2/pre-commit #24
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: Frontend | |
on: [push] | |
jobs: | |
lint: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: cd frontend && npm install | |
- name: Lint code | |
run: cd frontend && npx eslint . | |
- name: Run TypeScript checks | |
run: cd frontend && npx tsc --noEmit |