mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
added test for swift hook
This commit is contained in:
parent
14cebbb25f
commit
ca731268a4
5 changed files with 24 additions and 0 deletions
4
testing/resources/swift_hooks_repo/.gitignore
vendored
Normal file
4
testing/resources/swift_hooks_repo/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
5
testing/resources/swift_hooks_repo/Package.swift
Normal file
5
testing/resources/swift_hooks_repo/Package.swift
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "swift_hooks_repo"
|
||||
)
|
||||
1
testing/resources/swift_hooks_repo/Sources/main.swift
Normal file
1
testing/resources/swift_hooks_repo/Sources/main.swift
Normal file
|
|
@ -0,0 +1 @@
|
|||
print("Hello, world!")
|
||||
6
testing/resources/swift_hooks_repo/hooks.yaml
Normal file
6
testing/resources/swift_hooks_repo/hooks.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
- id: swift-hooks-repo
|
||||
name: Swift hooks repo example
|
||||
description: Runs the hello world app generated by swift package init --type executable (binary called swift_hooks_repo here)
|
||||
entry: swift_hooks_repo
|
||||
language: swift
|
||||
files: \.(swift)$
|
||||
Loading…
Add table
Add a link
Reference in a new issue