github: setup /etc/os-release #3
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: Testing on Ubuntu | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- 3.1 | |
- 3.2 | |
- 3.3 | |
- head | |
os: | |
- ubuntu-latest | |
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: setup /etc/os-release | |
run: | | |
sudo apt-get install -y base-files | |
- name: unit testing | |
env: | |
CI: true | |
run: | | |
gem install bundler rake | |
bundle install --jobs 4 --retry 3 | |
bundle exec rake test |