.github/workflows/rake.yml in metanorma-ribose-1.6.6 vs .github/workflows/rake.yml in metanorma-ribose-1.6.7
- old
+ new
@@ -2,11 +2,12 @@
# See https://github.com/metanorma/cimas
name: rake
on:
push:
- branches: [ master ]
+ branches: [ master, main ]
+ tags: [ v* ]
pull_request:
jobs:
rake:
name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
@@ -29,34 +30,37 @@
os: 'macos-latest'
experimental: true
steps:
- uses: actions/checkout@master
- - name: Use Ruby
- uses: ruby/setup-ruby@v1
+ - uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- bundler-cache: true
- - name: Update gems
- run: bundle install --jobs 4 --retry 3
+ - uses: actions/cache@v1
+ with:
+ path: vendor/bundle
+ key: bundle-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}
+ restore-keys: bundle-${{ matrix.os }}-${{ matrix.ruby }}
- - name: Install PlantUML Ubuntu
+ - run: bundle config set path 'vendor/bundle'
+
+ - run: bundle install --jobs 4 --retry 3
+
+ - name: install plantuml ubuntu
if: matrix.os == 'ubuntu-latest'
uses: nick-invision/retry@v1
with:
polling_interval_seconds: 5
timeout_minutes: 5
max_attempts: 3
- command: sudo apt-get update -y && sudo bash -c "curl -L https://github.com/metanorma/plantuml-install/raw/master/ubuntu.sh | bash"
+ command: >
+ sudo apt-get update -y && sudo bash -c
+ "curl -L https://github.com/metanorma/plantuml-install/raw/master/ubuntu.sh | bash"
- - name: Install PlantUML macOS
- if: matrix.os == 'macos-latest'
+ - if: matrix.os == 'macos-latest'
run: brew install plantuml
- - name: Install PlantUML Windows
- if: matrix.os == 'windows-latest'
- run: |
- cinst -y plantuml
+ - if: matrix.os == 'windows-latest'
+ run: cinst -y plantuml
- - name: Run specs
- run: bundle exec rake
+ - run: bundle exec rake