🚨 (chore) [DSDK-63]: Add Danger #214
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: pull_request | |
on: [pull_request] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Workaround when using custom runners | |
# https://github.com/danger/danger-js/issues/1374 | |
DANGER_GITHUB_API_BASE_URL: "https://api.github.com" | |
CI_JOB_NUMBER: 1 | |
FORCE_COLOR: 1 | |
jobs: | |
pull_request: | |
runs-on: [device-sdk-4xlarge-linux] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./actions/setup-toolchain-composite | |
- name: Lint | |
run: pnpm lint | |
- name: Prettier | |
run: pnpm prettier | |
- name: Test | |
run: pnpm test | |
- name: Danger | |
run: pnpm danger ci --dangerfile danger/dangerfile.ts |