Merge pull request #344 from netux/fix/editor-variable-detection-insi… #2346
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
BLIND_INDEX_MASTER_KEY: "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" | |
LOCKBOX_MASTER_KEY: "0000000000000000000000000000000000000000000000000000000000000000" | |
jobs: | |
linters: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup System | |
run: | | |
sudo apt update | |
sudo apt-get install libsqlite3-dev | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0.0 | |
bundler-cache: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "14" | |
check-latest: true | |
- run: yarn install | |
- name: ESLint | |
run: | | |
yarn run eslint app/javascript | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup System | |
run: | | |
sudo apt update | |
sudo apt-get install libsqlite3-dev | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0.0 | |
bundler-cache: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "14" | |
check-latest: true | |
cache: 'yarn' | |
cache-dependency-path: './yarn.lock' | |
- run: yarn install | |
- name: Precompile assets | |
run: | | |
bundle exec rails webpacker:compile RAILS_ENV=test | |
- name: Test | |
run: | | |
bundle exec rake db:test:prepare | |
bundle exec rails test | |
- name: RSpec | |
run: | | |
bundle exec rspec | |
- name: Jest | |
run: | | |
yarn jest | |
features: | |
name: Cucumber Feature Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup System | |
run: | | |
sudo apt update | |
sudo apt-get install libsqlite3-dev | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0.0 | |
bundler-cache: true | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "14" | |
check-latest: true | |
cache: 'yarn' | |
cache-dependency-path: './yarn.lock' | |
- run: yarn install | |
- name: Precompile assets | |
run: | | |
bundle exec rails webpacker:compile RAILS_ENV=test | |
- name: Cucumber | |
run: | | |
bundle exec rake db:test:prepare | |
bundle exec cucumber |