Skip to content

Instantly share code, notes, and snippets.

@LukaHarambasic
Last active Dec 21, 2020
Embed
What would you like to do?
GitHub Action: execute lint and test on push for each pull request (PR) - easy to adapt for other npm/yarn scripts - works with Netlfiy and Vercel - just add the following file in the following directory `.github/workflows/checks.yml`
name: Checks
on: push
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm run lint
test:
name: Test (jest)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm run test
@LukaHarambasic

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment