From 62533dbcf0cb37b800e3e5df0766b6f3d0989205 Mon Sep 17 00:00:00 2001 From: Euan Harris Date: Mon, 9 Dec 2024 10:12:49 +0000 Subject: [PATCH] wip: add scheduled job --- .github/workflows/main.yml | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..52e4030 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,63 @@ +name: main + +on: + push: + branches: + - main + schedule: + - cron: '15 10 * * *' + +jobs: + soundness: + name: Soundness + uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main + with: + api_breakage_check_container_image: "swift:6.0-noble" + docs_check_container_image: "swift:6.0-noble" + license_header_check_project_name: "SwiftContainerPlugin" + shell_check_container_image: "swift:6.0-noble" + + unit-tests: + name: Unit tests + uses: apple/swift-nio/.github/workflows/unit_tests.yml@main + with: + linux_5_9_enabled: false + linux_5_10_enabled: false + linux_6_0_arguments_override: "--skip SmokeTests" + linux_nightly_6_0_arguments_override: "--skip SmokeTests" + linux_nightly_main_arguments_override: "--skip SmokeTests" + + integration-tests: + name: Integration tests + runs-on: ubuntu-latest + services: + registry: + image: registry:2 + ports: + - 5000:5000 + container: + image: swift:6.0-noble + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Mark the workspace as safe + # https://github.com/actions/checkout/issues/766 + run: git config --global --add safe.directory ${GITHUB_WORKSPACE} + + - name: Run test job + env: + REGISTRY_HOST: registry + REGISTRY_PORT: 5000 + run: | + swift test + + endtoend-tests: + name: End to end tests + uses: ./.github/workflows/endtoend_tests.yml + + swift-6-language-mode: + name: Swift 6 Language Mode + uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main