DEV: Run linting workflow on our self hosted runners (#30661)

In 15a7a84d84, I changed the `linting`
workflow to run on `ubuntu-latest` because it is free and helps to free
up our self hosted runners for more important workflow jobs. However,
some devs rely on the `linting` workflow for feedback so we want to
provide this feedback as soon as we can. Therefore, we are putting the
`linting` workflow back on our faster self hosted runners.
This commit is contained in:
Alan Guo Xiang Tan 2025-01-09 18:22:57 +08:00 committed by GitHub
parent 69ec6d29d7
commit 8d3c86d984
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,8 +17,8 @@ jobs:
build: build:
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror' if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
name: run name: run
runs-on: ubuntu-latest runs-on: ${{ (github.repository_owner == 'discourse' && 'debian-12') || 'ubuntu-latest' }}
container: discourse/discourse_test:slim container: discourse/discourse_test:release
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
@ -34,12 +34,9 @@ jobs:
git config --global user.email "ci@ci.invalid" git config --global user.email "ci@ci.invalid"
git config --global user.name "Discourse CI" git config --global user.name "Discourse CI"
- name: Bundler cache - name: Symlink vendor/bundle from image
uses: actions/cache@v4 run: |
with: ln -s /var/www/discourse/vendor/bundle vendor/bundle
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-gem-
- name: Setup gems - name: Setup gems
run: | run: |