Build of main by @laritakr #1647
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: "Build" | |
run-name: Build of ${{ github.ref_name }} by @${{ github.actor }} | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
debug_step: | |
required: false | |
description: "Pause the selected step to debug using tmate" | |
type: choice | |
default: "" | |
options: | |
- "" | |
- build | |
- test | |
- lint | |
env: | |
REGISTRY: ghcr.io | |
DOCKER_BUILDKIT: 1 | |
COMPOSE_DOCKER_CLI_BUILD: 1 | |
jobs: | |
build: | |
uses: scientist-softserv/actions/.github/workflows/[email protected] | |
secrets: inherit | |
with: | |
platforms: "linux/amd64" # "linux/amd64,linux/arm64" | |
webTarget: hyku-web | |
solrTarget: hyku-solr | |
workerTarget: hyku-worker | |
lint: | |
needs: build | |
uses: scientist-softserv/actions/.github/workflows/[email protected] | |
with: | |
webTarget: hyku-web | |
workerTarget: hyku-worker | |
rubocop_cmd: "bundle exec rubocop --parallel --format progress" | |
test: | |
needs: build | |
uses: scientist-softserv/actions/.github/workflows/[email protected] | |
with: | |
confdir: "/app/samvera/hyrax-webapp/solr/conf" | |
rspec_cmd: "gem install semaphore_test_boosters && bundle && rspec_booster --job $CI_NODE_INDEX/$CI_NODE_TOTAL" | |
reports: | |
if: always() | |
needs: [test, lint] | |
uses: scientist-softserv/actions/.github/workflows/[email protected] |