Skip to content

ci: make workflow to verify samples, list all subdirs #631

ci: make workflow to verify samples, list all subdirs

ci: make workflow to verify samples, list all subdirs #631

Workflow file for this run

name: pull_request
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
soundness:
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
with:
# Not API stable package (yet)
api_breakage_check_enabled: false
# FIXME: Something is off with the format task and it gets "stuck", need to investigate
format_check_enabled: false
license_header_check_project_name: Swift.org
test-java:
name: Java tests (swift:${{ matrix.swift_version }} jdk:${{matrix.jdk_vendor}} os:${{ matrix.os_version }})
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
swift_version: ['6.1.2']
os_version: ['jammy']
jdk_vendor: ['Corretto']
container:
image: ${{ (contains(matrix.swift_version, 'nightly') && 'swiftlang/swift') || 'swift' }}:${{ matrix.swift_version }}-${{ matrix.os_version }}
env:
JAVA_HOME: "/usr/lib/jvm/default-jdk"
SWIFT_JAVA_VERBOSE: true
steps:
- uses: actions/checkout@v4
- name: Prepare CI Environment
uses: ./.github/actions/prepare_env
- name: Gradle build
run: ./gradlew build -x test
- name: Gradle check
run: ./gradlew check --debug
- name: Gradle compile JMH benchmarks
run: ./gradlew compileJmh --info
test-swift:
name: Swift tests (swift:${{ matrix.swift_version }} jdk:${{matrix.jdk_vendor}} os:${{ matrix.os_version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
swift_version: ['6.1.2']
os_version: ['jammy']
jdk_vendor: ['Corretto']
container:
image: ${{ (contains(matrix.swift_version, 'nightly') && 'swiftlang/swift') || 'swift' }}:${{ matrix.swift_version }}-${{ matrix.os_version }}
env:
JAVA_HOME: "/usr/lib/jvm/default-jdk"
SWIFT_JAVA_VERBOSE: true
steps:
- uses: actions/checkout@v4
- name: Prepare CI Environment
uses: ./.github/actions/prepare_env
- name: Swift Build
run: "swift build --build-tests --disable-sandbox"
- name: Swift Test
run: "swift test"
verify-samples:
uses: ./.github/workflows/verify_samples.yml

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

View workflow run for this annotation

GitHub Actions / pull_request

Invalid workflow file

The workflow is not valid. In .github/workflows/pull_request.yml (Line: 66, Col: 11): Error from called workflow swiftlang/swift-java/.github/workflows/verify_samples.yml@fac8e5bc2b42efe9710f95a69b1e6c7715c84b04 (Line: 76, Col: 15): Unrecognized named-value: 'sample_app'. Located at position 1 within expression: sample_app
with:
swift_version: '6.1.2'
os_version: 'jammy'
jdk_vendor: 'Corretto'