.github/workflows/rake.yml in isodoc-1.5.0 vs .github/workflows/rake.yml in isodoc-1.5.1

- old
+ new

@@ -14,70 +14,40 @@ runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} strategy: fail-fast: false matrix: - ruby: [ '2.6', '2.5', '2.4' ] + ruby: [ '2.7', '2.6', '2.5', '2.4' ] os: [ ubuntu-latest, windows-latest, macos-latest ] experimental: [ false ] include: - - ruby: '2.7' + - ruby: '3.0' os: 'ubuntu-latest' experimental: true - - ruby: '2.7' + - ruby: '3.0' os: 'windows-latest' experimental: true - - ruby: '2.7' + - ruby: '3.0' os: 'macos-latest' experimental: true steps: - uses: actions/checkout@master - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} + bundler-cache: true - - uses: actions/cache@v2 - with: - path: vendor/bundle - key: bundle-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }} - restore-keys: bundle-${{ matrix.os }}-${{ matrix.ruby }} + - uses: metanorma/metanorma-build-scripts/inkscape-setup-action@master - - run: bundle config set path 'vendor/bundle' - - - run: bundle install --jobs 4 --retry 3 - - - name: Install Inkscape macOS - if: matrix.os == 'macos-latest' - run: | - brew cask install inkscape - inkscape --version - - - name: Install Inkscape Ubuntu - if: matrix.os == 'ubuntu-latest' - run: | - sudo add-apt-repository ppa:inkscape.dev/stable - sudo apt update - sudo apt install inkscape - inkscape --version - - - name: Install Inkscape Windows - if: matrix.os == 'windows-latest' - run: | - choco install --no-progress -y inkscape - inkscape --version - - run: bundle exec rake tests-passed: needs: rake runs-on: ubuntu-latest - continue-on-error: true steps: - - name: Trigger tests passed event - uses: Sibz/github-status-action@v1 + - uses: peter-evans/repository-dispatch@v1 with: - authToken: ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }} - context: 'tests-passed-successfully' - description: 'Tests passed successfully' - state: 'success' - sha: ${{ github.event.pull_request.head.sha || github.sha }} + token: ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }} + repository: ${{ github.repository }} + event-type: notify + client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' \ No newline at end of file