Skip to content

Clarify that scripts are executed using the installed instance of JBang #15

Clarify that scripts are executed using the installed instance of JBang

Clarify that scripts are executed using the installed instance of JBang #15

Workflow file for this run

name: bld-ci
on: [ push, pull_request, workflow_dispatch ]
jobs:
build-bld-project:
strategy:
matrix:
java-version: [ 17, 21, 25 ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v5
with:
distribution: "zulu"
java-version: ${{ matrix.java-version }}
- name: Set up JBang
uses: jbangdev/setup-jbang@main
- name: Download dependencies [example]
working-directory: example
run: ./bld download
- name: Compile source code [example]
working-directory: example
run: ./bld compile
- name: Run JBang [example]
working-directory: example
run: ./bld jbang
- name: Run tests [example]
working-directory: example
run: ./bld test
- name: Download dependencies
run: ./bld download
- name: Compile source code
run: ./bld compile
- name: Run tests
id: tests
run: ./bld test
- name: Run reporter
if: ${{ failure() && steps.tests.outcome == 'failure' }}
run: ./bld reporter --all