Merge pull request #191 from dafyddcrosby/lazyload_repo #159
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
name: Continuous Integration | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
ruby: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [2.5, 2.6, 2.7] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Install dependencies | |
run: bundle install | |
- name: Run rspec | |
run: bundle exec rspec | |
- name: Enable rubocop matcher | |
run: echo "::add-matcher::.github/rubocop_matcher.json" | |
- name: Run rubocop | |
run: bundle exec rubocop --display-cop-names | |
markdown: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Lint Markdown | |
uses: actionshub/[email protected] | |
- name: Check links | |
uses: gaurav-nelson/github-action-markdown-link-check@v1 |