Merge branch 'feature/codecov-action' into develop
This commit is contained in:
commit
f55cb64730
|
|
@ -14,15 +14,23 @@ jobs:
|
||||||
xcode: ["11.6", "12_beta"]
|
xcode: ["11.6", "12_beta"]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@master
|
||||||
- name: Select Xcode ${{ matrix.xcode }}
|
- name: Select Xcode ${{ matrix.xcode }}
|
||||||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
|
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
|
||||||
- name: Swift version
|
- name: Swift version
|
||||||
run: swift --version
|
run: swift --version
|
||||||
- name: Test
|
- name: Test
|
||||||
run: swift test --skip-update --parallel --enable-test-discovery
|
run: swift test -v --skip-update --parallel --enable-test-discovery --enable-code-coverage
|
||||||
env:
|
env:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
|
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
|
||||||
|
- name: Generate coverage report
|
||||||
|
run: xcrun llvm-cov export -format="lcov" .build/debug/*PackageTests.xctest/Contents/MacOS/*PackageTests -instr-profile .build/debug/codecov/default.profdata > coverage.lcov
|
||||||
|
- name: Upload code coverage report
|
||||||
|
uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{secrets.CODECOV_TOKEN}}
|
||||||
|
file: coverage.lcov
|
||||||
|
fail_ci_if_error: true
|
||||||
- name: Build Release
|
- name: Build Release
|
||||||
run: swift build -c release
|
run: swift build -c release
|
||||||
env:
|
env:
|
||||||
|
|
@ -37,19 +45,34 @@ jobs:
|
||||||
image: swift:${{ matrix.swift }}
|
image: swift:${{ matrix.swift }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@master
|
||||||
|
- name: "Update APT"
|
||||||
|
shell: bash
|
||||||
|
run: "apt update"
|
||||||
|
- name: "Install curl"
|
||||||
|
shell: bash
|
||||||
|
run: "apt-get install -y curl"
|
||||||
- name: Swift version
|
- name: Swift version
|
||||||
run: swift --version
|
run: swift --version
|
||||||
- name: Test
|
- name: Test
|
||||||
run: swift test --skip-update --parallel --enable-test-discovery
|
run: swift test -v --skip-update --parallel --enable-test-discovery --enable-code-coverage
|
||||||
|
- name: Generate coverage report
|
||||||
|
run: llvm-cov export -format="lcov" .build/debug/*PackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > coverage.lcov
|
||||||
|
- name: Upload code coverage report
|
||||||
|
uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{secrets.CODECOV_TOKEN}}
|
||||||
|
file: coverage.lcov
|
||||||
|
fail_ci_if_error: true
|
||||||
- name: Build Release
|
- name: Build Release
|
||||||
run: swift build -c release
|
run: swift build -c release
|
||||||
|
|
||||||
|
|
||||||
webAssembly:
|
webAssembly:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@master
|
||||||
- name: Swift version
|
- name: Swift version
|
||||||
run: swift --version
|
run: swift --version
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
|
||||||
20
.travis.yml
20
.travis.yml
|
|
@ -1,20 +0,0 @@
|
||||||
os:
|
|
||||||
- linux
|
|
||||||
- osx
|
|
||||||
language: generic
|
|
||||||
sudo: required
|
|
||||||
dist: bionic
|
|
||||||
osx_image: xcode11
|
|
||||||
env: SWIFT_VERSION=5.1
|
|
||||||
install:
|
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"; fi
|
|
||||||
script:
|
|
||||||
- swift package reset
|
|
||||||
- swift build
|
|
||||||
- swift test --enable-code-coverage
|
|
||||||
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then xcrun llvm-cov show -instr-profile=.build/debug/codecov/default.profdata .build/debug/FirebladeECSPackageTests.xctest/Contents/MacOS/FirebladeECSPackageTests > fireblade_ecs_coverage.txt; fi
|
|
||||||
|
|
||||||
after_success:
|
|
||||||
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
|
||||||
bash <(curl -s https://codecov.io/bash);
|
|
||||||
fi
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
# Fireblade ECS (Entity-Component System)
|
# Fireblade ECS (Entity-Component System)
|
||||||
[](https://github.com/fireblade-engine/ecs/actions?query=workflow%3ACI)
|
[](https://github.com/fireblade-engine/ecs/actions?query=workflow%3ACI)
|
||||||
[](https://travis-ci.com/fireblade-engine/ecs)
|
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
[](https://swift.org)
|
[](https://swift.org)
|
||||||
[](#)
|
[](#)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue