docs(swimm): create doc: A flow in the code #21
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: [ '*' ] | |
pull_request: | |
branches: [ '*' ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- uses: actions/cache@v1 | |
with: | |
path: vendor/bundle | |
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} | |
# 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 install | |
- run: bundle exec middleman build |