chore: [IOCOM-1525] PAID badge, new DS #10120
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
on: | |
pull_request | |
jobs: | |
run-danger: | |
runs-on: ubuntu-latest | |
environment: dev | |
concurrency: | |
group: ${{ github.workflow }}-pr-staticcheck-danger-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
steps: | |
- id: checkout | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
- id: setup-node | |
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | |
with: | |
node-version-file: '.node-version' | |
- id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
shell: bash | |
- id: yarn-cache | |
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 | |
env: | |
cache-name: cache-node-modules | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- id: install-packages | |
run: yarn install --frozen-lockfile | |
shell: bash | |
- run: '[ -z "$DANGER_GITHUB_API_TOKEN" ] || yarn danger ci' | |
env: | |
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} | |
JIRA_USERNAME: ${{ secrets.JIRA_USERNAME }} | |
JIRA_PASSWORD: ${{ secrets.JIRA_PASSWORD }} |