fix pull_request workflow
Signed-off-by: Nathan Rew <nrew225@gmail.com>
This commit is contained in:
parent
af89e7930f
commit
5debc514d6
34
.github/workflows/pull_request.yml
vendored
34
.github/workflows/pull_request.yml
vendored
@ -3,41 +3,45 @@ name: Pull Request Checks
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_syntax:
|
check_syntax:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: create diff
|
||||||
|
run: git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" > temp.md
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: '14.x'
|
node-version: '14.x'
|
||||||
- name: create diff
|
- name: install chalk
|
||||||
run: |
|
|
||||||
git fetch
|
|
||||||
git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" >> temp.md
|
|
||||||
- name: Checks
|
|
||||||
run: |
|
run: |
|
||||||
cd tests
|
cd tests
|
||||||
npm install chalk
|
npm install chalk
|
||||||
cd ..
|
cd ..
|
||||||
script -e -c 'node tests/test.js -r README.md -d temp.md'
|
- name: Checks
|
||||||
|
run: script -e -c 'node tests/test.js -r README.md -d temp.md'
|
||||||
|
|
||||||
check_links:
|
check_links:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: create diff
|
||||||
|
run: git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" > temp.md
|
||||||
- name: Set up Ruby 2.6
|
- name: Set up Ruby 2.6
|
||||||
uses: actions/setup-ruby@v1
|
uses: actions/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.6.x
|
ruby-version: 2.6.x
|
||||||
- name: create diff
|
- name: install awesome_bot
|
||||||
run: |
|
run: gem install awesome_bot
|
||||||
git fetch
|
|
||||||
git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" >> temp.md
|
|
||||||
- name: Checks
|
- name: Checks
|
||||||
run: |
|
run: awesome_bot -f temp.md --allow-redirect --skip-save-results --allow 202 --white-list < tests/link_whitelist.txt
|
||||||
gem install awesome_bot
|
|
||||||
awesome_bot -f temp.md --allow-redirect --skip-save-results --allow 202 --white-list < tests/awesomebot_whitelist.txt
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user