Improve link checker on CI (#171)

This commit is contained in:
Ashish Bhatia 2023-03-26 20:43:47 -07:00 committed by GitHub
parent b2914e3425
commit 6c50a49d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,28 +5,35 @@
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Test
name: Link Test
on:
push:
branches: [ master ]
branches: [master, main]
pull_request:
branches: [ master ]
branches: [master, main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
validateLinks:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
# See https://github.com/ruby/setup-ruby#versioning
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
ruby-version: 3.0
- name: Install dependencies
run: gem install awesome_bot
- name: Run tests