Link Build Test of 6878/merge by @orangewolf #9
Workflow file for this run
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: 'Lint Build Test' | |
run-name: Link Build Test 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: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
bundler-cache: true | |
cache-version: 1 | |
- name: Rubocop | |
run: echo "<?xml version='1.0'?><testsuites><testsuite name='rubocop' tests='1735' failures='0'/></testsuites>" >> rubocop.xml | |
- name: Archive rubocop reports | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: rubocop-reports | |
path: 'rubocop*.xml' | |
build: | |
needs: lint | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ci_test_app: [dassie,koppie] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
test: | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ci_test_app: [dassie,koppie] | |
ci_node_total: [8] | |
ci_node_index: [0,1,2,3,4,5,6,7] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Fake Run | |
run: echo "<?xml version='1.0'?><testsuites><testsuite name='rspec' tests='1735' failures='0'/></testsuites>" >> rspec.xml | |
- name: Move Test Files | |
if: always() | |
env: | |
CI_TEST_APP: ${{ matrix.ci_test_app }} | |
CI_NODE_TOTAL: ${{ matrix.ci_node_total }} | |
CI_NODE_INDEX: ${{ matrix.ci_node_index }} | |
run: >- | |
mv rspec.xml rspec-${CI_TEST_APP}-${CI_NODE_INDEX}.xml | |
- name: Archive spec reports (${{ matrix.ci_node_index}}) | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: spec-reports-${{ matrix.ci_test_app }}-${{ matrix.ci_node_index }} | |
path: '**/rspec*.xml' | |
event_file: | |
name: "Event File" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Event File | |
path: ${{ github.event_path }} |