X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dbf35e0cf67ee330cd02c2431e0ed6d08681d184..56e7b269a094c77410bc2a95245dbc3836bbe0cc:/.github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f764a804f..0042817d8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,6 +2,9 @@ name: Lint 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 @@ -11,13 +14,13 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check out code - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v3 - name: Setup ruby - uses: actions/setup-ruby@v1 + uses: actions/setup-ruby@v1.1.3 with: ruby-version: ${{ env.ruby }} - name: Cache gems - uses: actions/cache@v2.1.5 + uses: actions/cache@v3 with: path: vendor/bundle key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }} @@ -35,13 +38,13 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check out code - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v3 - name: Setup ruby - uses: actions/setup-ruby@v1 + uses: actions/setup-ruby@v1.1.3 with: ruby-version: ${{ env.ruby }} - name: Cache gems - uses: actions/cache@v2.1.5 + uses: actions/cache@v3 with: path: vendor/bundle key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }} @@ -59,20 +62,20 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check out code - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v3 - name: Setup ruby - uses: actions/setup-ruby@v1 + uses: actions/setup-ruby@v1.1.3 with: ruby-version: ${{ env.ruby }} - name: Cache gems - uses: actions/cache@v2.1.5 + 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.5 + uses: actions/cache@v3 with: path: node_modules key: yarn-${{ env.os }}-${{ hashFiles('yarn.lock') }} @@ -94,13 +97,13 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check out code - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v3 - name: Setup ruby - uses: actions/setup-ruby@v1 + uses: actions/setup-ruby@v1.1.3 with: ruby-version: ${{ env.ruby }} - name: Cache gems - uses: actions/cache@v2.1.5 + uses: actions/cache@v3 with: path: vendor/bundle key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}