feat: initial commit #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: SDV Approval Bot | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
- name: Installing dependencies | |
run: npm ci | |
- name: Linting the commit message | |
run: npx commitlint -V --from=HEAD~1 | |
- name: Linting the application code | |
run: npm run lint-bot | |
- name: Running unit tests | |
run: npm run unit-test |