-
Notifications
You must be signed in to change notification settings - Fork 49
51 lines (46 loc) · 1.37 KB
/
build-test-lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: "Build"
run-name: Build of ${{ github.ref_name }} by @${{ github.actor }}
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
env:
REGISTRY: ghcr.io
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
jobs:
build:
uses: scientist-softserv/actions/.github/workflows/build.yaml@v0.0.22
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/lint.yaml@v0.0.22
with:
webTarget: hyku-web
workerTarget: hyku-worker
rubocop_cmd: "bundle exec rubocop --parallel --format progress"
test:
needs: build
uses: scientist-softserv/actions/.github/workflows/test.yaml@v0.0.22
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/report.yaml@v0.0.22