Set up Github Actions #6
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: PR | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
soundness: | |
name: Soundness | |
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main | |
with: | |
license_header_check_project_name: "Swift Cassandra Client" | |
api_breakage_check_enabled: false | |
format_check_enabled: false | |
unit-tests: | |
name: Unit Tests | |
# Workaround https://github.com/nektos/act/issues/1875 | |
uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main | |
with: | |
name: "Unit tests" | |
matrix_linux_command: "printf '#!/bin/sh\nexit 0' > /usr/sbin/policy-rc.d && echo \"deb [signed-by=/etc/apt/keyrings/apache-cassandra.asc] https://debian.cassandra.apache.org 41x main\" | tee -a /etc/apt/sources.list.d/cassandra.sources.list && curl -o /etc/apt/keyrings/apache-cassandra.asc https://downloads.apache.org/cassandra/KEYS && apt-get update && apt install -y default-jre && apt-get install -y cassandra && swift build --explicit-target-dependency-import-check error && while ! nodetool status 2>/dev/null; do echo Waiting for Cassandra.. && sleep 3; done && export CASSANDRA_USER=cassandra && export CASSANDRA_PASSWORD=cassandra && export CASSANDRA_KEYSPACE=cassandra && swift test --explicit-target-dependency-import-check error" | |
cxx-interop: | |
name: Cxx interop | |
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main | |
swift-6-language-mode: | |
name: Swift 6 Language Mode | |
uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main | |
if: false # Disabled for now. |