Upgrades GitHub Workflows #55
This file contains hidden or 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: [ '*' ] | |
| pull_request: | |
| branches: [ '*' ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby-version: [3.1, 3.2, 3.3] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential libxml2-dev libxslt-dev zlib1g-dev pkg-config | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true | |
| # necessary to get ruby 2.3 to work nicely with bundler vendor/bundle cache | |
| # can remove once ruby 2.3 is no longer supported | |
| - run: gem update --system | |
| - run: bundle config set deployment 'true' | |
| - run: bundle config build.nokogiri --use-system-libraries | |
| - name: bundle install | |
| run: | | |
| bundle config path vendor/bundle | |
| bundle install --jobs 4 --retry 3 | |
| - run: bundle exec middleman build |