mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
[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.
This commit is contained in:
1 parent
74f7b1e675
commit
ff9492cbbf
1 file changed
+33
@@ -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"
|
||||
Reference in new issue
Block a user