Skip to content

Commit 0533a1c

Browse files
authored
Merge pull request #8 from swift-server/sebsto/ci
Add a github action and build badge
2 parents 05d897f + aa848c6 commit 0533a1c

17 files changed

+149
-534
lines changed

.github/workflows/pull_request.yaml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# This workflow will build a Swift project on macOS and Linux
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
name: swift-openapi-lambda-build
4+
5+
on:
6+
push:
7+
branches: ["main"]
8+
pull_request:
9+
types: [opened, reopened, synchronize]
10+
11+
jobs:
12+
soundness:
13+
name: Soundness
14+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
15+
with:
16+
# do not use SwiftLang's license header check because the copyright for this project is Amazon.com + contributors
17+
license_header_check_enabled: false
18+
license_header_check_project_name: "Swift OpenAPI Lambda"
19+
shell_check_enabled: false
20+
python_lint_check_enabled: false
21+
api_breakage_check_container_image: "swift:6.0-noble"
22+
docs_check_container_image: "swift:6.0-noble"
23+
format_check_container_image: "swiftlang/swift:nightly-6.0-jammy"
24+
25+
license:
26+
name: License headers check
27+
runs-on: ubuntu-latest
28+
strategy:
29+
fail-fast: false
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
with:
34+
persist-credentials: false
35+
- name: Mark the workspace as safe
36+
# https://github.com/actions/checkout/issues/766
37+
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
38+
- name: License headers check
39+
env:
40+
PROJECT_NAME: "Swift OpenAPI Lambda"
41+
run: |
42+
./scripts/check-license-headers.sh
43+
44+
unit-tests:
45+
name: Unit tests
46+
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
47+
with:
48+
linux_5_9_enabled: false
49+
linux_5_10_enabled: true
50+
linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error"
51+
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"
52+
53+
swift-6-language-mode:
54+
name: Swift 6 Language Mode
55+
uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main

.licenseignore

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.gitignore
2+
.licenseignore
3+
.swiftformatignore
4+
.spi.yml
5+
.swift-format
6+
.github/*
7+
*.md
8+
**/*.md
9+
CONTRIBUTORS.txt
10+
LICENSE.txt
11+
NOTICE.txt
12+
Package.swift
13+
Package@swift-*.swift
14+
Package.resolved
15+
**/*.docc/*
16+
**/.gitignore
17+
**/Package.swift
18+
**/Package.resolved
19+
**/docker-compose*.yaml
20+
**/docker/*
21+
**/.dockerignore
22+
**/Dockerfile
23+
**/Makefile
24+
**/*.html
25+
**/*-template.yml
26+
**/*.xcworkspace/*
27+
**/*.xcodeproj/*
28+
**/*.xcassets/*
29+
**/*.appiconset/*
30+
**/ResourcePackaging/hello.txt
31+
.mailmap
32+
.swiftformat
33+
*.yaml
34+
*.yml
35+
*.json
36+
*.gif

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
[![Build & Test on GitHub](https://github.com/swift-server/swift-openapi-lambda/actions/workflows/pull_request.yaml/badge.svg)](https://github.com/swift-server/swift-openapi-lambda/actions/workflows//pull_request.yaml)
2+
3+
14
![language](https://img.shields.io/badge/swift-5.9-blue)
5+
![language](https://img.shields.io/badge/swift-5.10-blue)
6+
![language](https://img.shields.io/badge/swift-6.0-blue)
27
![platform](https://img.shields.io/badge/platform-macOS-green)
38
![platform](https://img.shields.io/badge/platform-Linux-orange)
49
[![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

docker/Dockerfile

-26
This file was deleted.

docker/docker-compose.2204.510.yaml

-18
This file was deleted.

docker/docker-compose.2204.59.yaml

-18
This file was deleted.

docker/docker-compose.2204.590.yaml

-18
This file was deleted.

docker/docker-compose.2204.main.yaml

-18
This file was deleted.

docker/docker-compose.yaml

-47
This file was deleted.

scripts/check-for-broken-symlinks.sh

-53
This file was deleted.

scripts/check-for-docc-warnings.sh

-55
This file was deleted.

0 commit comments

Comments
 (0)