Update dependencies (#207) #523
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
# build-apple: | |
# name: Build and Test (Apple platforms) | |
# runs-on: macos-11 | |
# env: | |
# DEVELOPER_DIR: /Applications/Xcode_13.1.app/Contents/Developer | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Test | |
# run: swift test -v --enable-code-coverage | |
# continue-on-error: true | |
# - name: Debug | |
# run: | | |
# ls -la .build/debug | |
# ls -la .build/debug/BagbutikPackageTests.xctest | |
# ls -la .build/debug/BagbutikPackageTests.xctest/Contents/MacOS | |
# otool -L .build/debug/BagbutikPackageTests.xctest | |
# - name: Export coverage | |
# run: xcrun llvm-cov export -format="lcov" -instr-profile=.build/debug/codecov/default.profdata -ignore-filename-regex=".build|Tests" .build/debug/BagbutikPackageTests.xctest/Contents/MacOS/BagbutikPackageTests > coverage.lcov | |
# - name: Upload coverage | |
# uses: paambaati/codeclimate-action@v2.7.5 | |
# env: | |
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
# with: | |
# coverageCommand: ls | |
# coverageLocations: coverage.lcov:lcov | |
# debug: true | |
build-linux: | |
name: Build and Test (Linux) - Swift ${{ matrix.swift }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
swift: ["5", "6"] | |
steps: | |
- uses: NeedleInAJayStack/setup-swift@4e17dcd69a660eea371d715802c219601e76f50a | |
with: | |
swift-version: ${{ matrix.swift }} | |
- uses: actions/checkout@v4 | |
- name: Test | |
run: swift test -v |