Documentation: Add make as build requirement (#265) #226
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: build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }}-latest | |
continue-on-error: ${{ matrix.ruby-version == 'head' }} | |
strategy: | |
matrix: | |
os: [ubuntu] | |
ruby-version: ['3.1', '3.2', '3.3'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- name: Install packages | |
run: sudo apt update && sudo apt install -yy gcc | |
- name: Bundle install | |
run: sudo env "PATH=$PATH" bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle} | |
- name: Run tests | |
run: sudo env "PATH=$PATH" CI=1 CC_TEST_REPORTER_ID=1 bundle exec rake | |
- name: Publish code coverage | |
if: ${{ success() && runner.os == 'Linux' && env.CC_TEST_REPORTER_ID }} | |
uses: paambaati/codeclimate-action@v2.7.5 | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} |