Skip to content

Commit

Permalink
Added workflows for PR and main
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitribouniol committed Sep 23, 2024
1 parent 291fac2 commit 686df63
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Pull Request

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
unit-tests:
name: Unit tests
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
with:
linux_5_8_enabled: false
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"

swift-6-language-mode:
name: Swift 6 Language Mode
uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main
30 changes: 30 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Pull Request

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
soundness:
name: Soundness
uses: apple/swift-nio/.github/workflows/soundness.yml@main
with:
license_header_check_project_name: "WebAuthn Swift"
shell_check_enabled: false
format_check_enabled: false
license_header_check_enabled: false
docs_check_enabled: false

unit-tests:
name: Unit tests
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
with:
linux_5_8_enabled: false
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"

swift-6-language-mode:
name: Swift 6 Language Mode
uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main
33 changes: 33 additions & 0 deletions .licenseignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.gitignore
.licenseignore
.swiftformatignore
.spi.yml
.swiftlint.yml
.swift-format
.github/*
*.md
**/*.md
CONTRIBUTORS.txt
LICENSE
NOTICE.txt
Package.swift
Package@swift-*.swift
Package.resolved
**/*.docc/*
**/.gitignore
**/Package.swift
**/Package.resolved
**/docker-compose*.yaml
**/docker/*
**/.dockerignore
**/Dockerfile
**/Makefile
**/*.html
**/*-template.yml
**/*.xcworkspace/*
**/*.xcodeproj/*
**/*.xcassets/*
**/*.appiconset/*
**/ResourcePackaging/hello.txt
.mailmap
.swiftformat
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let package = Package(
.package(url: "https://github.com/unrelentingtech/SwiftCBOR.git", from: "0.4.7"),
.package(url: "https://github.com/apple/swift-crypto.git", "2.0.0" ..< "4.0.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.1.0")
.package(url: "https://github.com/swiftlang/swift-docc-plugin.git", from: "1.1.0")
],
targets: [
.target(
Expand Down

0 comments on commit 686df63

Please sign in to comment.