Skip to content

NEW: Make use of generic workflows #370

NEW: Make use of generic workflows

NEW: Make use of generic workflows #370

Workflow file for this run

name: Pipeline
on:
- pull_request
concurrency:
group: pull-request-${{ github.ref }}
cancel-in-progress: true
jobs:
# DOCKER
build:
name: Build Image
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_docker.yml@make-more-reusable
secrets: inherit
with:
name: Test
image: "gmmcal/gmmcal:test"
cypress:
name: Build Image
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_docker.yml@make-more-reusable
secrets: inherit
with:
name: Cypress
target: cypress
image: "gmmcal/gmmcal:cypress"
preview:
name: Build Image
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_docker.yml@make-more-reusable
secrets: inherit
with:
name: Preview
target: production
image: "gmmcal/gmmcal:preview-${{ github.event.number }}-${{ github.run_number }}"
publish: true
development:
name: Build Image
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_docker.yml@make-more-reusable

Check failure on line 41 in .github/workflows/pull_request.yml

View workflow run for this annotation

GitHub Actions / Pipeline

Invalid workflow file

The workflow is not valid. .github/workflows/pull_request.yml (Line: 41, Col: 11): Input image is required, but not provided while calling.
secrets: inherit
with:
name: Development
target: development
publish: false
production:
name: Build Image
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_docker.yml@make-more-reusable
secrets: inherit
with:
name: Production
target: production
publish: false
# LINT
rubocop:
name: Lint
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_lint.yml@make-more-reusable
with:
name: Rubocop
command: bundle exec rubocop --config .rubocop.yml .
needs: build
reek:
name: Lint
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_lint.yml@make-more-reusable
with:
name: Reek
command: bundle exec reek --config .reek.yml .
needs: build
brakeman:
name: Lint
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_lint.yml@make-more-reusable
with:
name: Brakeman
command: bundle exec brakeman
needs: build
scsslint:
name: Lint
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_lint.yml@make-more-reusable
with:
name: SCSSLint
command: bundle exec scss-lint --config .scss-lint.yml
needs: build
bundler-audit:
name: Lint
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_lint.yml@make-more-reusable
with:
name: Bundler Audit
command: bundle exec bundle-audit check --update
needs: build
eslint:
name: Lint
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_lint.yml@make-more-reusable
with:
name: ESLint
command: yarn eslint
image: gmmcal/gmmcal:cypress
needs: cypress
eslint_tests:
name: Lint
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_lint.yml@make-more-reusable
with:
name: ESLint - Tests
command: yarn eslint:tests
image: gmmcal/gmmcal:cypress
needs: cypress
# TESTS
tests:
name: Tests
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_tests.yml@make-more-reusable
with:
image: gmmcal/gmmcal:test
command: bundle exec rspec
needs: build
e2e-admin:
name: Tests
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_cypress.yml@make-more-reusable
with:
image: gmmcal/gmmcal:cypress
application-image: gmmcal/gmmcal:test
pattern: spec/end-to-end/tests/admin/**.js
name: Admin
needs: [build, cypress]
e2e-frontend:
name: Tests
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_cypress.yml@make-more-reusable
with:
image: gmmcal/gmmcal:cypress
application-image: gmmcal/gmmcal:test
pattern: spec/end-to-end/tests/frontend/**.js
name: Frontend
needs: [build, cypress]
# Preview and Cleanup
deploy:
name: Preview
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_preview.yml@make-more-reusable
needs: preview
secrets: inherit
with:
image: "gmmcal/gmmcal:preview-${{ github.event.number }}-${{ github.run_number }}"