DEV: Update CI workflows
This commit is contained in:
parent
2fa3a0ab70
commit
4d9b789d57
|
@ -1,41 +1,46 @@
|
||||||
name: Linting
|
name: Linting
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 12
|
||||||
|
|
||||||
- name: Set up ruby
|
- name: Set up ruby
|
||||||
uses: actions/setup-ruby@v1
|
uses: actions/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.7
|
ruby-version: 2.7
|
||||||
|
|
||||||
- name: Setup bundler
|
- name: Setup bundler
|
||||||
run: gem install bundler -v 2.1.4 --no-doc
|
run: gem install bundler -v 2.1.4 --no-doc
|
||||||
|
|
||||||
- name: Setup gems
|
- name: Setup gems
|
||||||
run: bundle install --jobs 4
|
run: bundle install --jobs 4
|
||||||
|
|
||||||
- name: Yarn install
|
- name: Yarn install
|
||||||
run: yarn install --dev
|
run: yarn install --dev
|
||||||
|
|
||||||
- name: ESLint
|
- name: ESLint
|
||||||
run: yarn eslint --ext .js,.js.es6 --no-error-on-unmatched-pattern assets/javascripts
|
run: yarn eslint --ext .js,.js.es6 --no-error-on-unmatched-pattern assets/javascripts
|
||||||
|
|
||||||
- name: Prettier
|
- name: Prettier
|
||||||
run: |
|
run: |
|
||||||
yarn prettier -v
|
yarn prettier -v
|
||||||
yarn prettier --list-different \
|
yarn prettier --list-different \
|
||||||
"assets/**/*.{scss,js,es6}"
|
"assets/**/*.{scss,js,es6}"
|
||||||
|
|
||||||
- name: Rubocop
|
- name: Rubocop
|
||||||
run: bundle exec rubocop .
|
run: bundle exec rubocop .
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
name: Plugin Tests
|
name: Plugin Tests
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -23,7 +28,7 @@ jobs:
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
build_types: ["BACKEND", "FRONTEND"]
|
build_types: ["BACKEND", "FRONTEND"]
|
||||||
target: ["PLUGINS", "CORE"]
|
target: ["PLUGINS"]
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
ruby: ["2.6"]
|
ruby: ["2.6"]
|
||||||
postgres: ["12"]
|
postgres: ["12"]
|
||||||
|
|
Loading…
Reference in New Issue