Enable huge 'select' statements #37
This file contains hidden or 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: GitHub PR test runner | |
on: | |
pull_request: | |
types: [ assigned, opened, synchronize, reopened ] | |
branches: | |
- main | |
jobs: | |
pr-validator: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# we actually need "github.event.pull_request.commits + 1" commit | |
fetch-depth: 0 | |
- name: Node setup | |
uses: actions/setup-node@v2.1.0 | |
- name: Check commit syntax | |
run: | | |
yarn add @commitlint/cli@12.1.4 @commitlint/config-conventional | |
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js | |
yarn run commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD | |
- name: Run unit tests | |
run: ./test.sh |