Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
chore: move danger to GH action
also convert dangerfile to typescript
- Loading branch information
Showing
with
478 additions
and 75 deletions.
- +1 −1 .eslintrc.js
- +0 −11 .github/workflows/commitlint.yml
- +24 −0 .github/workflows/lint.yml
- +1 −2 .github/workflows/nodejs.yml
- +0 −7 .travis.yml
- +1 −4 dangerfile.js → dangerfile.ts
- +1 −0 package.json
- +450 −50 yarn.lock
There are no files selected for viewing
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
@@ -63,7 +63,7 @@ module.exports = { | ||
globals, | ||
}, | ||
{ | ||
files: ['src/**/*', 'dangerfile.ts'], | ||
parserOptions: { | ||
sourceType: 'module', | ||
}, | ||
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
@@ -0,0 +1,24 @@ | ||
name: Lint | ||
on: [pull_request] | ||
|
||
jobs: | ||
commitlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: wagoid/commitlint-github-action@v1.2.2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
danger: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: install | ||
run: yarn | ||
- name: Danger | ||
run: yarn danger ci | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
@@ -50,8 +50,7 @@ jobs: | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: install | ||
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
@@ -12,13 +12,6 @@ before_script: greenkeeper-lockfile-update | ||
script: | ||
- yarn test --coverage --maxWorkers 2 | ||
after_script: greenkeeper-lockfile-upload | ||
cache: | ||
yarn: true | ||
branches: | ||
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
@@ -1,7 +1,4 @@ | ||
import { danger } from 'danger'; | ||
|
||
// Ensure that people include a description on their PRs | ||
if (danger.github.pr.body.length === 0) { | ||
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
Oops, something went wrong.