From: Andy Allan Date: Sun, 16 Feb 2025 16:13:38 +0000 (+0000) Subject: Merge pull request #5692 from tomhughes/ubuntu-latest X-Git-Tag: live~290 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/07965246f80a65dde8ce1962da0e177985b6fb73?hp=9e659066a9bc7121bd94d352a2dab237cdd6b869 Merge pull request #5692 from tomhughes/ubuntu-latest Use ubuntu-latest for all workflows --- diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index 6da5e7164..66c2aca51 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -10,7 +10,7 @@ permissions: jobs: danger: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v4 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 771d307cf..8d0e9f615 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -8,7 +8,7 @@ concurrency: jobs: test: name: Docker - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Checkout source uses: actions/checkout@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 06f6ff841..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.1' 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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 156ed99e7..d1cf73eae 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,12 +7,11 @@ concurrency: cancel-in-progress: true jobs: test: - name: Ubuntu ${{ matrix.ubuntu }}, Ruby ${{ matrix.ruby }} + name: Ruby ${{ matrix.ruby }} strategy: matrix: - ubuntu: [22.04, 24.04] ruby: ['3.1', '3.2', '3.3', '3.4'] - runs-on: ubuntu-${{ matrix.ubuntu }} + runs-on: ubuntu-latest env: RAILS_ENV: test OPENSTREETMAP_MEMCACHE_SERVERS: 127.0.0.1 @@ -26,12 +25,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-ubuntu-${{ matrix.ubuntu }}-${{ hashFiles('yarn.lock') }} - restore-keys: | - yarn-ubuntu-${{ matrix.ubuntu }}- + cache: yarn - name: Install packages run: | sudo apt-get -yqq update @@ -68,7 +64,7 @@ jobs: uses: coverallsapp/github-action@v2.3.6 with: github-token: ${{ secrets.github_token }} - flag-name: ubuntu-${{ matrix.ubuntu }}-ruby-${{ matrix.ruby }} + flag-name: ruby-${{ matrix.ruby }} format: lcov parallel: true finish: