Skip to content

Commit e2ac665

Browse files
authored
Update to latest APNS (#52)
1 parent 1637a30 commit e2ac665

File tree

6 files changed

+44
-45
lines changed

6 files changed

+44
-45
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @0xTim @gwynne @kylebrowning

.github/workflows/api-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
with:
1212
package_name: apns
1313
modules: APNS
14-
pathsToInvalidate: /apns
14+
pathsToInvalidate: /apns/*

.github/workflows/projectboard.yml

+4-24
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,7 @@ on:
55
types: [reopened, closed, labeled, unlabeled, assigned, unassigned]
66

77
jobs:
8-
setup_matrix_input:
9-
runs-on: ubuntu-latest
10-
11-
steps:
12-
- id: set-matrix
13-
run: |
14-
output=$(curl ${{ github.event.issue.url }}/labels | jq '.[] | .name') || output=""
15-
16-
echo '======================'
17-
echo 'Process incoming data'
18-
echo '======================'
19-
json=$(echo $output | sed 's/"\s"/","/g')
20-
echo $json
21-
echo "::set-output name=matrix::$(echo $json)"
22-
outputs:
23-
issueTags: ${{ steps.set-matrix.outputs.matrix }}
24-
25-
Manage_project_issues:
26-
needs: setup_matrix_input
27-
uses: vapor/ci/.github/workflows/issues-to-project-board.yml@main
28-
with:
29-
labelsJson: ${{ needs.setup_matrix_input.outputs.issueTags }}
30-
secrets:
31-
PROJECT_BOARD_AUTOMATION_PAT: "${{ secrets.PROJECT_BOARD_AUTOMATION_PAT }}"
8+
update_project_boards:
9+
name: Update project boards
10+
uses: vapor/ci/.github/workflows/update-project-boards-for-issue.yml@reusable-workflows
11+
secrets: inherit

.github/workflows/test.yml

+12-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
name: test
2+
concurrency:
3+
group: ${{ github.workflow }}-${{ github.ref }}
4+
cancel-in-progress: true
25
on:
3-
- pull_request
6+
pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
7+
push: { branches: [ main ] }
8+
49
jobs:
5-
focal:
6-
container:
7-
image: swift:5.7
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v3
11-
- run: swift test
12-
test-exports:
13-
name: Test exports
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Check out Vapor
17-
uses: actions/checkout@v3
18-
with:
19-
fetch-depth: 0
20-
- name: Build
21-
run: swift build -Xswiftc -DBUILDING_DOCC
10+
unit-tests:
11+
uses: vapor/ci/.github/workflows/run-unit-tests.yml@reusable-workflows
12+
with:
13+
with_coverage: true
14+
with_tsan: false
15+

Package.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ let package = Package(
1111
.library(name: "VaporAPNS", targets: ["VaporAPNS"]),
1212
],
1313
dependencies: [
14-
.package(url: "https://github.com/swift-server-community/APNSwift.git", from: "5.0.0-beta.3"),
15-
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
14+
.package(url: "https://github.com/swift-server-community/APNSwift.git", from: "5.0.0"),
15+
.package(url: "https://github.com/vapor/vapor.git", from: "4.77.2"),
1616
],
1717
targets: [
1818
.target(name: "VaporAPNS", dependencies: [

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
<p align="center">
2+
<img src="https://raw.githubusercontent.com/vapor/design/main/src/images/logo-main-black.svg" alt="Vapor" height="64">
3+
<br>
4+
<br>
5+
<a href="https://docs.vapor.codes/4.0/">
6+
<img src="http://img.shields.io/badge/read_the-docs-2196f3.svg" alt="Documentation">
7+
</a>
8+
<a href="https://discord.gg/vapor">
9+
<img src="https://img.shields.io/discord/431917998102675485.svg" alt="Team Chat">
10+
</a>
11+
<a href="LICENSE">
12+
<img src="http://img.shields.io/badge/license-MIT-brightgreen.svg" alt="MIT License">
13+
</a>
14+
<a href="https://github.com/vapor/apns/actions/workflows/test.yml">
15+
<img src="https://github.com/vapor/apns/actions/workflows/test.yml/badge.svg?event=push" alt="CI">
16+
</a>
17+
<a href="https://codecov.io/gh/vapor/apns">
18+
<img src="https://codecov.io/gh/vapor/apns/branch/main/graph/badge.svg?token=END01VX21G" alt="Test Coverage">
19+
</a>
20+
<a href="https://swift.org">
21+
<img src="http://img.shields.io/badge/swift-5.7-brightgreen.svg" alt="Swift 5.7">
22+
</a>
23+
</p>
24+
125
# APNS
226

327
Helpful extensions and abstractions for using [`APNSwift`](http://github.com/kylebrowning/APNSwift.git)

0 commit comments

Comments
 (0)