git: merge pull request #35 from TranNghiaHiep/hotfix/run-build #32
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: Check code | |
on: | |
push: | |
branches: ['main'] | |
tags-ignore: ['**'] | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
check-code: | |
name: Check code | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: '18.18.2' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run lint | |
run: npm run lint | |
- name: Run test | |
run: npm run test | |
- name: Run build | |
run: npm run build |