on:
- push
- pull_request
+concurrency:
+ group: ${{ github.workflow }}-{{ github.head_ref || github.ref }}
+ cancel-in-progress: true
env:
os: ubuntu-20.04
ruby: 2.7
with:
ruby-version: ${{ env.ruby }}
- name: Cache gems
- uses: actions/cache@v2.1.7
+ uses: actions/cache@v3
with:
path: vendor/bundle
key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}
with:
ruby-version: ${{ env.ruby }}
- name: Cache gems
- uses: actions/cache@v2.1.7
+ uses: actions/cache@v3
with:
path: vendor/bundle
key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}
with:
ruby-version: ${{ env.ruby }}
- name: Cache gems
- uses: actions/cache@v2.1.7
+ uses: actions/cache@v3
with:
path: vendor/bundle
key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}
restore-keys: |
bundle-${{ env.os }}-${{ env.ruby }}-
- name: Cache node modules
- uses: actions/cache@v2.1.7
+ uses: actions/cache@v3
with:
path: node_modules
key: yarn-${{ env.os }}-${{ hashFiles('yarn.lock') }}
with:
ruby-version: ${{ env.ruby }}
- name: Cache gems
- uses: actions/cache@v2.1.7
+ uses: actions/cache@v3
with:
path: vendor/bundle
key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}