[pact] feat: Adding github action for contract test #23
Workflow file for this run
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: Backend Linting | |
on: | |
pull_request: | |
branches: ["main"] | |
paths: | |
- "backend/**" | |
defaults: | |
run: | |
working-directory: ./backend | |
jobs: | |
eslint: | |
name: Run eslint scanning | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: write | |
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install packages | |
run: npm ci | |
- name: Run ESLint | |
run: npm run lint |