X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7e7ede890e8e948236d3dbc48e24aca00cd01f62..f0d19b04f6afa4a5ed41b1d58e0469de4fbd0c8c:/.github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 06f6ff841..099d0abf8 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.1' + ruby: '3.2' jobs: rubocop: name: RuboCop - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v4 @@ -50,12 +49,9 @@ jobs: rubygems: 3.4.10 bundler-cache: true - name: Cache node modules - uses: actions/cache@v4 + 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 @@ -90,14 +86,17 @@ jobs: ruby-version: ${{ env.ruby }} rubygems: 3.4.10 bundler-cache: true + - name: Configure rails + run: | + cp config/github.database.yml config/database.yml + cp config/example.storage.yml config/storage.yml - name: Setup database run: | sudo systemctl start postgresql sudo -u postgres createuser -s $(id -un) createdb openstreetmap - cp config/github.database.yml config/database.yml bundle exec rails db:schema:load - name: Run Annotate Models - run: bundle exec rails annotate_models + run: bundle exec annotaterb models - name: Fail if model annotations are out of date run: git diff --exit-code