diff --git a/.github/workflows/validate_urls.yml b/.github/workflows/validate_urls.yml new file mode 100644 index 00000000..9f622084 --- /dev/null +++ b/.github/workflows/validate_urls.yml @@ -0,0 +1,31 @@ +name: Validate links + +on: [push, pull_request] + +concurrency: + group: ${{github.workflow}}-${{github.ref}} + cancel-in-progress: true + +jobs: + unit: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + + steps: + - name: checkout + uses: actions/checkout@v3 + + - name: set up ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.1 + bundler-cache: true + + - name: install awesome_bot + run: gem install awesome_bot + + - name: validate URLs + run: awesome_bot README.md --allow-redirect --request-delay 0.4