Merge pull request #296 from gagahpangeran/post-markdown-github #386
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 and Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
lint: | |
name: Lint and Test all | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
with: | |
path: ./node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node_modules- | |
- name: Install NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22.x" | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn | |
- name: Run linter script | |
run: yarn lint | |
- name: Run type check script | |
run: yarn type-check | |
- name: Run test script | |
run: yarn test |