X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9026b84d844fce847820626b495d6c4fcaa55ea1..84c4ed3fa8e203aa4c84cbf4d735bfcbe456be8c:/.github/workflows/lint.yml?ds=sidebyside diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0608b699b..8383068b3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,12 +6,11 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} cancel-in-progress: true env: - os: ubuntu-22.04 - ruby: '3.0' + ruby: '3.1' jobs: rubocop: name: RuboCop - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v4 @@ -36,7 +35,7 @@ jobs: rubygems: 3.4.10 bundler-cache: true - name: Run erblint - run: bundle exec erblint . + run: bundle exec erb_lint . eslint: name: ESLint runs-on: ubuntu-22.04 @@ -50,12 +49,9 @@ jobs: rubygems: 3.4.10 bundler-cache: true - name: Cache node modules - uses: actions/cache@v3 + uses: actions/setup-node@v4 with: - path: node_modules - key: yarn-${{ env.os }}-${{ hashFiles('yarn.lock') }} - restore-keys: | - yarn-${{ env.os }}- + cache: yarn - name: Install node modules run: bundle exec bin/yarn install - name: Create dummy database configuration