.github/workflows/rake.yml in metanorma-1.2.6 vs .github/workflows/rake.yml in metanorma-1.2.7

- old
+ new

@@ -14,47 +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: actions/checkout@v2 + with: + submodules: true - 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 }} - - - run: bundle config set path 'vendor/bundle' - - - run: bundle install --jobs 4 --retry 3 - - run: bundle exec rake tests-passed: needs: rake runs-on: ubuntu-latest steps: - uses: peter-evans/repository-dispatch@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }} repository: ${{ github.repository }} event-type: notify - client-payload: '{"ref": "${{ github.ref }}"}' + client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'