Project template updates (#25)
* Project template updates * More changes * run swiftformat
This commit is contained in:
7
.github/workflows/api-breakage.yml
vendored
7
.github/workflows/api-breakage.yml
vendored
@@ -3,17 +3,16 @@ name: API breaking changes
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
container:
|
||||
image: swift:5.8
|
||||
image: swift:5.9
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
# https://github.com/actions/checkout/issues/766
|
||||
|
||||
35
.github/workflows/ci.yml
vendored
35
.github/workflows/ci.yml
vendored
@@ -8,48 +8,21 @@ on:
|
||||
- '**.swift'
|
||||
- '**.yml'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- 2.x.x
|
||||
paths:
|
||||
- '**.swift'
|
||||
- '**.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
macOS:
|
||||
runs-on: macOS-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: SPM tests
|
||||
run: swift test --enable-code-coverage
|
||||
- name: Convert coverage files
|
||||
run: |
|
||||
xcrun llvm-cov export -format "lcov" \
|
||||
.build/debug/hummingbird-mustachePackageTests.xctest/Contents/MacOs/hummingbird-mustachePackageTests \
|
||||
-ignore-filename-regex="\/Tests\/" \
|
||||
-ignore-filename-regex="\/Benchmarks\/" \
|
||||
-instr-profile=.build/debug/codecov/default.profdata > info.lcov
|
||||
- name: Upload to codecov.io
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
file: info.lcov
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
strategy:
|
||||
matrix:
|
||||
image:
|
||||
- 'swift:5.7'
|
||||
- 'swift:5.8'
|
||||
- 'swift:5.9'
|
||||
- 'swiftlang/swift:nightly-5.10-jammy'
|
||||
image: ["swift:5.9", "swift:5.10", "swiftlang/swift:nightly-jammy"]
|
||||
|
||||
container:
|
||||
image: ${{ matrix.image }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
- name: Test
|
||||
run: |
|
||||
swift test --enable-code-coverage
|
||||
@@ -61,6 +34,6 @@ jobs:
|
||||
-ignore-filename-regex="\/Benchmarks\/" \
|
||||
-instr-profile .build/debug/codecov/default.profdata > info.lcov
|
||||
- name: Upload to codecov.io
|
||||
uses: codecov/codecov-action@v3
|
||||
uses: codecov/codecov-action@v4
|
||||
with:
|
||||
file: info.lcov
|
||||
|
||||
14
.github/workflows/nightly.yml
vendored
14
.github/workflows/nightly.yml
vendored
@@ -1,20 +1,12 @@
|
||||
name: Swift nightly build
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 1 * * 1'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
macOS:
|
||||
runs-on: macOS-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: SPM tests
|
||||
run: swift test
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
strategy:
|
||||
matrix:
|
||||
image: ['nightly-focal', 'nightly-jammy', 'nightly-amazonlinux2']
|
||||
@@ -23,7 +15,7 @@ jobs:
|
||||
image: swiftlang/swift:${{ matrix.image }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
- name: Test
|
||||
run: |
|
||||
swift test --enable-test-discovery
|
||||
swift test
|
||||
|
||||
6
.github/workflows/validate.yml
vendored
6
.github/workflows/validate.yml
vendored
@@ -2,16 +2,14 @@ name: Validity Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- 2.x.x
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: macOS-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Install Dependencies
|
||||
|
||||
Reference in New Issue
Block a user