Skip to content

Add push trigger for build and lint on pr workflow #3

Add push trigger for build and lint on pr workflow

Add push trigger for build and lint on pr workflow #3

name: 'Build and Lint on Pull Requests'
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 16.13.x
cache: npm
- name: Install dependencies
run: npm install
- name: Build application
run: npm run build
- name: Autofix ESLint and Prettier warnings
run: npm run lint:fix && npm run lint:format
- name: Check for more ESLint warnings
run: npm run lint