A platform for community discussion. Free, open, simple.
DEV: Various GitHub Actions CI tweaks (#9724)
Jarek Radoszb7d6eb39865d
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex aa94465fafd..25dbc3839ca 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -57,12 +57,14 @@ jobs:fetch-depth: 1- name: Setup Git- run: git config --global user.email "[email protected]" && git config --global user.name "Discourse CI"+ run: |+ git config --global user.email "[email protected]"+ git config --global user.name "Discourse CI"- name: Setup packagesif: env.BUILD_TYPE != 'LINT'run: |- sudo apt-get -yqq install postgresql-client libpq-dev gifsicle jpegoptim optipng jhead && \+ sudo apt-get -yqq install postgresql-client libpq-dev gifsicle jpegoptim optipng jheadwget -qO- https://raw.githubusercontent.com/discourse/discourse_docker/master/image/base/install-pngquant | sudo sh- name: Setup redis@@ -78,7 +80,10 @@ jobs:architecture: 'x64'- name: Setup bundler- run: gem install bundler -v 2.1.1 --no-doc+ run: |+ gem install bundler -v 2.1.4 --no-doc+ bundle config deployment 'true'+ bundle config without 'development'- name: Bundler cacheuses: actions/cache@v1@@ -90,7 +95,7 @@ jobs:${{ runner.os }}-gem-- name: Setup gems- run: bundle install --without development --deployment --jobs 4 --retry 3+ run: bundle install --jobs 4- name: Get yarn cache directoryid: yarn-cache-dir@@ -114,11 +119,15 @@ jobs:- name: Create databaseif: env.BUILD_TYPE != 'LINT'- run: bin/rake db:create && bin/rake db:migrate+ run: |+ bin/rake db:create+ bin/rake db:migrate- name: Create parallel databasesif: env.BUILD_TYPE == 'BACKEND' && env.TARGET == 'CORE'- run: bin/rake parallel:create && bin/rake parallel:migrate+ run: |+ bin/rake parallel:create+ bin/rake parallel:migrate- name: Rubocopif: env.BUILD_TYPE == 'LINT'@@ -126,7 +135,9 @@ jobs:- name: ESLintif: env.BUILD_TYPE == 'LINT'- run: yarn eslint app/assets/javascripts test/javascripts && yarn eslint --ext .es6 app/assets/javascripts test/javascripts plugins+ run: |+ yarn eslint app/assets/javascripts test/javascripts+ yarn eslint --ext .es6 app/assets/javascripts test/javascripts plugins- name: Prettierif: env.BUILD_TYPE == 'LINT'@@ -136,7 +147,9 @@ jobs:- name: Core RSpecif: env.BUILD_TYPE == 'BACKEND' && env.TARGET == 'CORE'- run: bin/turbo_rspec && bin/rake plugin:spec+ run: |+ bin/turbo_rspec+ bin/rake plugin:spec- name: Plugin RSpecif: env.BUILD_TYPE == 'BACKEND' && env.TARGET == 'PLUGINS'