Skip to content

Commit

Permalink
Add platform specifiers (#89)
Browse files Browse the repository at this point in the history
* Add platform specifiers

* De-ancientize CI
  • Loading branch information
gwynne authored Mar 21, 2023
1 parent cd27a6e commit 3a31859
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 41 deletions.
48 changes: 7 additions & 41 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,10 @@
name: test
on: { pull_request: {} }
on:
pull_request: { branches: ['*'] }
push: { branches: ['main'] }

jobs:
getcidata:
runs-on: ubuntu-latest
outputs:
environments: ${{ steps.output.outputs.environments }}
steps:
- id: output
run: |
envblob="$(curl -fsSL https://raw.githubusercontent.com/vapor/ci/main/pr-environments.json | jq -cMj '.')"
echo "::set-output name=environments::${envblob}"
test-vapor:
needs: getcidata
strategy:
fail-fast: false
matrix:
env: ${{ fromJSON(needs.getcidata.outputs.environments) }}
runs-on: ${{ matrix.env.os }}
container: ${{ matrix.env.image }}
steps:
- name: Select toolchain
uses: maxim-lobanov/setup-xcode@v1.2.1
with:
xcode-version: ${{ matrix.env.toolchain }}
if: ${{ matrix.env.toolchain != '' }}
- name: Check out Vapor
uses: actions/checkout@v3
- name: Run tests with Thread Sanitizer
timeout-minutes: 20
run: swift test --enable-test-discovery --sanitize=thread

test-exports:
name: Test exports
runs-on: ubuntu-latest
steps:
- name: Check out source
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build
run: swift build -Xswiftc -DBUILDING_DOCC
unit-tests:
uses: vapor/ci/.github/workflows/run-unit-tests.yml@reusable-workflows
with:
with_coverage: false
6 changes: 6 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ import PackageDescription

let package = Package(
name: "multipart-kit",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.tvOS(.v13),
.watchOS(.v6),
],
products: [
.library(name: "MultipartKit", targets: ["MultipartKit"]),
],
Expand Down

0 comments on commit 3a31859

Please # to comment.