mirror of
https://github.com/discourse/discourse.git
synced 2025-01-16 05:02:41 +08:00
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:
parent
69ec6d29d7
commit
8d3c86d984
13
.github/workflows/linting.yml
vendored
13
.github/workflows/linting.yml
vendored
|
@ -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 "ci@ci.invalid"
|
||||
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: |
|
||||
|
|
Loading…
Reference in New Issue
Block a user