diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index ca92521..9834ab3 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -48,14 +48,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: '3.0' - bundler-cache: true - + bundler-cache: false - name: Install dependencies - run: bundle install + run: bundle install --jobs 4 --retry 3 - name: Rubocop run run: | diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index f18c487..35bb27c 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -53,13 +53,21 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + + - uses: actions/cache@v3 + with: + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- - name: Set up Ruby uses: ruby/setup-ruby@v1 - env: - BUNDLE_DEPLOYMENT: false with: ruby-version: '3.0' - bundler-cache: true + bundler-cache: false + - name: Install dependencies + run: bundle install --jobs 4 --retry 3 + - name: Run RuboCop run: bundle exec rubocop --parallel diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 47bb5c1..e6e7ded 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,13 +13,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + + - uses: actions/cache@v3 + with: + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- - name: Set up Ruby uses: ruby/setup-ruby@v1 - env: - BUNDLE_DEPLOYMENT: false with: ruby-version: '3.0' - bundler-cache: true + bundler-cache: false + - name: Install dependencies + run: bundle install --jobs 4 --retry 3 - name: Publish to GPR run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5494ba3..06e3fb3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,13 +13,21 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + + - uses: actions/cache@v3 + with: + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- - name: Set up Ruby uses: ruby/setup-ruby@v1 - env: - BUNDLE_DEPLOYMENT: false with: ruby-version: '3.0' - bundler-cache: true + bundler-cache: false + - name: Install dependencies + run: bundle install --jobs 4 --retry 3 + - name: Run RuboCop run: bundle exec rubocop --parallel