Project template update

This commit is contained in:
Adam Fowler
2023-03-27 09:47:54 +01:00
parent 48918c1d2a
commit 85114c9ecb
4 changed files with 11 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ jobs:
runs-on: macOS-latest runs-on: macOS-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: SPM tests - name: SPM tests
run: swift test --enable-code-coverage run: swift test --enable-code-coverage
- name: Convert coverage files - name: Convert coverage files
@@ -28,6 +28,7 @@ jobs:
xcrun llvm-cov export -format "lcov" \ xcrun llvm-cov export -format "lcov" \
.build/debug/hummingbird-mustachePackageTests.xctest/Contents/MacOs/hummingbird-mustachePackageTests \ .build/debug/hummingbird-mustachePackageTests.xctest/Contents/MacOs/hummingbird-mustachePackageTests \
-ignore-filename-regex="\/Tests\/" \ -ignore-filename-regex="\/Tests\/" \
-ignore-filename-regex="\/Benchmarks\/" \
-instr-profile=.build/debug/codecov/default.profdata > info.lcov -instr-profile=.build/debug/codecov/default.profdata > info.lcov
- name: Upload to codecov.io - name: Upload to codecov.io
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3
@@ -46,7 +47,7 @@ jobs:
image: ${{ matrix.image }} image: ${{ matrix.image }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Test - name: Test
run: | run: |
swift test --enable-code-coverage swift test --enable-code-coverage
@@ -55,6 +56,7 @@ jobs:
llvm-cov export -format="lcov" \ llvm-cov export -format="lcov" \
.build/debug/hummingbird-mustachePackageTests.xctest \ .build/debug/hummingbird-mustachePackageTests.xctest \
-ignore-filename-regex="\/Tests\/" \ -ignore-filename-regex="\/Tests\/" \
-ignore-filename-regex="\/Benchmarks\/" \
-instr-profile .build/debug/codecov/default.profdata > info.lcov -instr-profile .build/debug/codecov/default.profdata > info.lcov
- name: Upload to codecov.io - name: Upload to codecov.io
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3

View File

@@ -10,20 +10,20 @@ jobs:
runs-on: macOS-latest runs-on: macOS-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: SPM tests - name: SPM tests
run: swift test run: swift test
linux: linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
image: ['nightly-bionic', 'nightly-focal', 'nightly-jammy', 'nightly-amazonlinux2'] image: ['nightly-focal', 'nightly-jammy', 'nightly-amazonlinux2']
container: container:
image: swiftlang/swift:${{ matrix.image }} image: swiftlang/swift:${{ matrix.image }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Test - name: Test
run: | run: |
swift test --enable-test-discovery swift test --enable-test-discovery

View File

@@ -10,7 +10,7 @@ jobs:
runs-on: macOS-latest runs-on: macOS-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v3
with: with:
fetch-depth: 1 fetch-depth: 1
- name: Install Dependencies - name: Install Dependencies

6
.gitignore vendored
View File

@@ -1,8 +1,8 @@
.DS_Store .DS_Store
.build/ .build/
/.swiftpm .swiftpm/
/.vscode .vscode/
/.devcontainer .devcontainer/
/Packages /Packages
/*.xcodeproj /*.xcodeproj
xcuserdata/ xcuserdata/