name: CI on: [push] jobs: static_analysis: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: workarea-commerce/ci/bundler-audit@v1 - uses: workarea-commerce/ci/rubocop@v1 - uses: workarea-commerce/ci/eslint@v1 with: args: '**/*.js' - uses: workarea-commerce/ci/stylelint@v1 with: args: '**/*.scss' admin_tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-ruby@v1 with: ruby-version: 2.6.x - uses: workarea-commerce/ci/test@v1 with: command: bin/rails app:workarea:test:admin core_tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-ruby@v1 with: ruby-version: 2.6.x - uses: workarea-commerce/ci/test@v1 with: command: bin/rails app:workarea:test:core storefront_tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-ruby@v1 with: ruby-version: 2.6.x - uses: workarea-commerce/ci/test@v1 with: command: bin/rails app:workarea:test:storefront plugins_tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-ruby@v1 with: ruby-version: 2.6.x - uses: workarea-commerce/ci/test@v1 with: command: bin/rails app:workarea:test:plugins - uses: actions/upload-artifact@v2 if: ${{ failure() }} with: name: screenshots path: test/dummy/tmp/screenshots/