[FEAT] give errors from submit() exception #21
Workflow file for this run
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: Lint, Test, and Danger | |
on: pull_request | |
jobs: | |
lint-test-danger: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PAT_DECRAPIFIER }} | |
fetch-depth: 0 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Lint | |
run: yarn run lint:ci || touch FAIL_JOB | |
- name: Test | |
run: yarn run test:ci || touch FAIL_JOB | |
- name: Setup Decrapifier user | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "Decrapifier" | |
git config push.default upstream | |
git checkout --track origin/${{github.head_ref}} | |
- name: Run danger | |
run: yarn run danger ci || touch FAIL_JOB | |
env: | |
DANGER_GITHUB_API_TOKEN: ${{ secrets.PAT_DECRAPIFIER }} | |
- name: check-if-lint-or-test-runs-failed | |
run: 'if test -f "FAIL_JOB"; then exit 1; fi' |