DEV: Update CI workflows

This commit is contained in:
Discourse CI 2020-10-09 15:09:53 +00:00
parent 8f977eff1e
commit a14050a9be
2 changed files with 37 additions and 28 deletions

View File

@ -1,6 +1,11 @@
name: Linting
on: [push, pull_request]
on:
push:
branches:
- master
- main
pull_request:
jobs:
build:
@ -35,8 +40,7 @@ jobs:
run: |
yarn prettier -v
yarn prettier --list-different \
"assets/stylesheets/**/*.scss" \
"assets/javascripts/**/*.{js,es6}"
"assets/**/*.{scss,js,es6}"
- name: Rubocop
run: bundle exec rubocop .

View File

@ -1,6 +1,11 @@
name: Plugin Tests
on: [push, pull_request]
on:
push:
branches:
- master
- main
pull_request:
jobs:
build:
@ -23,7 +28,7 @@ jobs:
matrix:
build_types: ["BACKEND", "FRONTEND"]
target: ["PLUGINS", "CORE"]
target: ["PLUGINS"]
os: [ubuntu-latest]
ruby: ["2.6"]
postgres: ["12"]