From ff9492cbbf2c99e4e80752350fd2e4bb27804c44 Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Fri, 6 Sep 2024 15:51:29 +0200 Subject: [PATCH] [CI] Run tests on push to main (#2868) # Motivation We want to get green check marks on our commits to main. To do this we have to run part of our CI jobs when a new commit is pushed. # Modification This PR adds a new workflow trigger to run our CI when a commit is pushed to the main branch. # Result Green checkmarks on our commits. --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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 000000000..0f918faf1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +name: Main + +on: + push: + branches: [main] + +jobs: + unit-tests: + name: Unit tests + uses: ./.github/workflows/unit_tests.yml + with: + linux_5_8_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" + linux_5_9_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" + linux_5_10_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" + linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error" + linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error" + + benchmarks: + name: Benchmarks + uses: ./.github/workflows/benchmarks.yml + with: + benchmark_package_path: "Benchmarks" + + cxx-interop: + name: Cxx interop + uses: ./.github/workflows/cxx_interop.yml + + integration-tests: + name: Integration Tests + uses: ./.github/workflows/swift_matrix.yml + with: + name: "Integration tests" + matrix_linux_command: "apt-get update -y -q && apt-get install -y -q lsof dnsutils netcat-openbsd net-tools curl jq && ./scripts/integration_tests.sh"