Skip to content

fix: add trigger for lint #2

fix: add trigger for lint

fix: add trigger for lint #2

Workflow file for this run

name: Lint # name of the action (displayed in the github interface)
on: push # event list
pull_request: # on a pull request to each of these branches

Check failure on line 4 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / Lint

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yml (Line: 4, Col: 1): Unexpected value 'pull_request' .github/workflows/lint.yml (Line: 5, Col: 1): Unexpected value 'branches'
branches:
- development
- staging
- production
env: # environment variables (available in any part of the action)
NODE_VERSION: 16
jobs: # list of things to do
linting:
name: Linting # job name (unique id)
runs-on: ubuntu-latest # on which machine to run
steps: # list of steps
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Code Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: npm ci
- name: Code Linting
run: npm run lint