Skip to content

Commit

Permalink
feat: add pr-rules-check action
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-gs committed Aug 9, 2023
1 parent 5bca6fb commit d553fa4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pr-rules-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Code coverage
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
check:
permissions:
contents: read
packages: read
pull-requests: write
name: Pre-merge checks
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Check Out Repo
uses: actions/checkout@v2

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'

- name: Install dependencies
run: yarn
env:
NODE_AUTH_TOKEN: ${{ github.token }}

- name: Run check
run: yarn danger ci
env:
DANGER_GITHUB_API_TOKEN: ${{ github.token }}

0 comments on commit d553fa4

Please sign in to comment.