name: Nanoc

on: push

jobs:
  test:
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        ruby-version: ["2.5", "2.6", "2.7", "3.0"]

    steps:
      - uses: actions/checkout@v2

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby-version }}

      - uses: actions/cache@v2
        with:
          path: vendor/bundle
          key: bundler-b-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('Gemfile') }}

      - run: bundle install --path=vendor/bundle

      - name: Test nanoc-core
        run: bundle exec rake nanoc_core:test

      - name: Test nanoc
        run: bundle exec rake nanoc:test

      - name: Test nanoc-cli
        run: bundle exec rake nanoc_cli:test

      - name: Test nanoc-checking
        run: bundle exec rake nanoc_checking:test

      - name: Test nanoc-deploying
        run: bundle exec rake nanoc_deploying:test

      - name: Test nanoc-external
        run: bundle exec rake nanoc_external:test

      - name: Test nanoc-live
        run: bundle exec rake nanoc_live:test

      - name: Test nanoc-spec
        run: bundle exec rake nanoc_spec:test

      - name: Test guard-nanoc
        run: bundle exec rake guard_nanoc:test

name: Nanoc

on: push

jobs:
  test:
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        ruby-version: ["2.5", "2.6", "2.7", "3.0"]

    steps:
      - uses: actions/checkout@v2

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby-version }}

      - uses: actions/cache@v2
        with:
          path: vendor/bundle
          key: bundler-b-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('Gemfile') }}

      - run: |
          bundle config set --local path 'vendor/bundle'
          bundle install

      - name: Test nanoc-core
        run: bundle exec rake nanoc_core:test

      - name: Test nanoc
        run: bundle exec rake nanoc:test

      - name: Test nanoc-cli
        run: bundle exec rake nanoc_cli:test

      - name: Test nanoc-checking
        run: bundle exec rake nanoc_checking:test

      - name: Test nanoc-deploying
        run: bundle exec rake nanoc_deploying:test

      - name: Test nanoc-external
        run: bundle exec rake nanoc_external:test

      - name: Test nanoc-live
        run: bundle exec rake nanoc_live:test

      - name: Test nanoc-spec
        run: bundle exec rake nanoc_spec:test

      - name: Test guard-nanoc
        run: bundle exec rake guard_nanoc:test

Use up to date bundler local path command
Use up to date bundler local path command

```
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path 'vendor/bundle'`, and stop using this flag
```
