Skip to content
Snippets Groups Projects
Unverified Commit f1d151e9 authored by chris48s's avatar chris48s Committed by GitHub
Browse files

migrate danger CI job to GHA (#8477)

* migrate danger CI job to GHA

* constrain triggers

* prettier
parent a0149a8f
No related branches found
No related tags found
No related merge requests found
...@@ -26,26 +26,6 @@ services_steps: &services_steps ...@@ -26,26 +26,6 @@ services_steps: &services_steps
path: junit path: junit
jobs: jobs:
danger:
docker:
- image: cimg/node:16.15
steps:
- checkout
- run:
name: Install dependencies
command: npm ci
environment:
CYPRESS_INSTALL_BINARY: 0
- run:
name: Danger
when: always
environment:
# https://github.com/gatsbyjs/gatsby/pull/11555
NODE_ENV: test
command: npm run danger ci
services: services:
docker: docker:
- image: cimg/node:16.15 - image: cimg/node:16.15
...@@ -77,13 +57,6 @@ workflows: ...@@ -77,13 +57,6 @@ workflows:
ignore: ignore:
- master - master
- gh-pages - gh-pages
- danger:
filters:
branches:
ignore:
- master
- gh-pages
- /dependabot\/.*/
# on-commit-with-cache: # on-commit-with-cache:
# jobs: # jobs:
# - npm-install: # - npm-install:
...@@ -102,9 +75,3 @@ workflows: ...@@ -102,9 +75,3 @@ workflows:
# filters: # filters:
# branches: # branches:
# ignore: master # ignore: master
# - danger:
# requires:
# - npm-install
# filters:
# branches:
# ignore: /dependabot\/.*/
name: Danger
on:
pull_request_target:
types: [opened, edited, reopened, synchronize]
permissions:
checks: write
pull-requests: write
statuses: write
jobs:
danger:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 16
- name: Danger
run: npm run danger ci
env:
# https://github.com/gatsbyjs/gatsby/pull/11555
NODE_ENV: test
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment