Develop #14
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 pull request | |
on: | |
pull_request: | |
types: | |
- opened | |
branches: | |
- develop | |
jobs: | |
check-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print github | |
run: echo '${{ toJson(github) }}' | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
- name: Install dependencies | |
run: npm ci | |
- name: Run linter | |
run: npm run lint | |
continue-on-error: true | |
- name: Report lint errors | |
if: ${{ failure() }} | |
run: echo "There are linting errors. Please use 'npm run lint-fix' to address them." |