Skip to content

Move final steps to run on docker for github actions #57

Move final steps to run on docker for github actions

Move final steps to run on docker for github actions #57

Workflow file for this run

name: Pipeline
on:
- pull_request
jobs:
build:
name: Test
uses: ./.github/workflows/docker.yml
secrets: inherit
cypress:
name: Cypress
uses: ./.github/workflows/docker.yml
secrets: inherit
with:
target: cypress
rubocop:
name: Rubocop
uses: ./.github/workflows/lint.yml
with:
command: bundle exec rubocop --config .rubocop.yml .
needs: build
reek:
name: Reek
uses: ./.github/workflows/lint.yml
with:
command: bundle exec reek --config .reek.yml .
needs: build
brakeman:
name: Brakeman
uses: ./.github/workflows/lint.yml
with:
command: bundle exec brakeman
needs: build
scsslint:
name: SCSSLint
uses: ./.github/workflows/lint.yml
with:
command: bundle exec scss-lint --config .scss-lint.yml
needs: build
tests:
name: Backend
uses: ./.github/workflows/tests.yml
needs: build
e2e-admin:
name: Admin
uses: ./.github/workflows/cypress.yml
with:
pattern: spec/end-to-end/tests/admin/**.js
needs: [build, cypress]
e2e-frontend:
name: Frontend
uses: ./.github/workflows/cypress.yml
with:
pattern: spec/end-to-end/tests/frontend/**.js
needs: [build, cypress]
bundler-audit:
name: Bundler Audit
uses: ./.github/workflows/lint.yml
with:
command: bundle exec bundle-audit check --update
needs: build
eslint:
name: ESLint
uses: ./.github/workflows/lint.yml
with:
command: cat package.json
image: gmmcal/gmmcal:cypress
needs: cypress
# container:
# image: node:18
# steps:
# - uses: actions/checkout@v4
# - name: Get yarn cache directory path
# id: yarn-cache-dir-path
# run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
# - uses: actions/cache@v3
# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
# with:
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-yarn-gmmcal-${{ hashFiles('/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-gmmcal-
# - name: Run yarn install
# run: yarn install
# - name: Run ESLint - Application
# run: yarn eslint
# - name: Run ESLint - Tests
# run: yarn eslint:tests