Merge pull request #9 from guanquann/user-service-backend #42
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: Lint | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
env: | |
NODE_VERSION: 20 | |
jobs: | |
question-service: | |
runs-on: ubuntu-latest | |
name: Question service | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setting node version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install dependences | |
working-directory: ./backend/question-service | |
run: npm install | |
- name: Run eslint | |
working-directory: ./backend/question-service | |
run: npm run lint | |
frontend: | |
runs-on: ubuntu-latest | |
name: Frontend | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setting node version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install dependencies | |
working-directory: ./frontend | |
run: npm install | |
- name: Run eslint | |
working-directory: ./frontend | |
run: npm run lint |