Skip to content

A platform for community discussion. Free, open, simple.

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

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