(frontend) linter #3
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: CI | |
on: [push, pull_request] | |
jobs: | |
frontend: | |
name: Frontend Lint & Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "18" # Ensure the correct Node.js version | |
- name: Install dependencies | |
working-directory: travian/frontend # Change to frontend directory | |
run: npm install | |
- name: Lint | |
run: npm run lint | |
working-directory: travian/frontend | |
- name: Test | |
run: npm run test | |
working-directory: travian/frontend |