Skip to content

Commit fa10f84

Browse files
chore: audit Pioneer (#32)
1 parent 35833ff commit fa10f84

File tree

11 files changed

+442
-2
lines changed

11 files changed

+442
-2
lines changed

.github/workflows/audits.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,33 @@ jobs:
252252
with:
253253
name: postgraphile-report
254254
path: README.md
255+
pioneer:
256+
runs-on: ubuntu-latest
257+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
258+
env:
259+
PORT: 4000
260+
steps:
261+
- name: Checkout
262+
uses: actions/checkout@v3
263+
- name: Set up node
264+
uses: actions/setup-node@v3
265+
with:
266+
node-version: 18
267+
cache: yarn
268+
- name: Install
269+
run: yarn install --immutable
270+
- name: Build
271+
run: yarn build:esm
272+
- name: Start
273+
run: yarn workspace pioneer start -d --wait
274+
# TODO: cache docker build artifacts
275+
- name: Audit
276+
run: node scripts/audit-implementation.mjs README.md
277+
- name: Upload report
278+
uses: actions/upload-artifact@v3
279+
with:
280+
name: pioneer-report
281+
path: README.md
255282

256283
report:
257284
name: Report
@@ -268,6 +295,7 @@ jobs:
268295
thegraph,
269296
hotchocolate,
270297
postgraphile,
298+
pioneer,
271299
]
272300
steps:
273301
- name: Checkout
@@ -320,6 +348,11 @@ jobs:
320348
with:
321349
name: postgraphile-report
322350
path: implementations/postgraphile
351+
- name: Download pioneer report
352+
uses: actions/download-artifact@v3
353+
with:
354+
name: pioneer-report
355+
path: implementations/pioneer
323356
- name: Commit
324357
run: |
325358
git config user.name "github-actions[bot]"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ If you want a feature-full server with bleeding edge technologies, you're recomm
733733
| ------------------------------------------------------------------ | -------------------------------------------------------- |
734734
| [graphql-yoga](https://www.the-guild.dev/graphql/yoga-server) | [✅ Compliant](/implementations/graphql-yoga/README.md) |
735735
| [hotchocolate](https://chillicream.com/docs/hotchocolate) | [✅ Compliant](/implementations/hotchocolate/README.md) |
736+
| [pioneer](https://pioneer.dexclaimation.com/) | [✅ Compliant](/implementations/pioneer/README.md) |
736737
| [postgraphile](https://www.graphile.org/postgraphile/) | [✅ Compliant](/implementations/postgraphile/README.md) |
737738
| [apollo-server](https://www.apollographql.com/docs/apollo-server/) | [✅ Compliant](/implementations/apollo-server/README.md) |
738739

implementations/pioneer/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
/*.xcodeproj
5+
xcuserdata/
6+
DerivedData/
7+
.swiftpm/config/registries.json
8+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
9+
.netrc

implementations/pioneer/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM swift:latest
2+
WORKDIR /root
3+
RUN apt update
4+
RUN apt install curl
5+
COPY ./Package.* ./
6+
RUN swift package resolve
7+
COPY ./Sources ./Sources
8+
RUN swift build -c release

implementations/pioneer/Package.resolved

Lines changed: 212 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

implementations/pioneer/Package.swift

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// swift-tools-version: 5.7
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "audit",
8+
platforms: [
9+
.macOS(.v12)
10+
],
11+
dependencies: [
12+
// Dependencies declare other packages that this package depends on.
13+
// .package(url: /* package url */, from: "1.0.0") ,
14+
.package(url: "https://github.com/d-exclaimation/pioneer", from: "1.1.0"),
15+
.package(url: "https://github.com/GraphQLSwift/GraphQL", from: "2.4.4")
16+
],
17+
targets: [
18+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
19+
// Targets can depend on other targets in this package, and on products in packages this package depends on.
20+
.executableTarget(
21+
name: "audit",
22+
dependencies: [
23+
.product(name: "Pioneer", package: "pioneer"),
24+
"GraphQL"
25+
]),
26+
]
27+
)

0 commit comments

Comments
 (0)