encodeBytes -> encodeToBytes etc (#33) #146
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: | |
"validity-Tests": | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install swiftformat | |
run: brew install swiftformat | |
- name: Run validity | |
run: ./scripts/validity.sh . | |
"tuxOS-Tests": | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
images: | |
- swift:5.8 | |
- swift:5.9 | |
- swift:5.10 | |
- swiftlang/swift:nightly-jammy | |
container: | |
image: ${{ matrix.images }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Test | |
run: swift test --enable-code-coverage | |
- name: Convert coverage files | |
run: llvm-cov export -format="lcov" .build/debug/swift-extras-base64PackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v4 | |
with: | |
file: info.lcov | |
"tuxOS-Performance-Tests": | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
images: | |
- swift:5.10 | |
container: | |
image: ${{ matrix.images }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build & run | |
run: swift run -c release | |
"tuxOS-Integration-Tests": | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
images: | |
- swift:5.10 | |
container: | |
image: ${{ matrix.images }} | |
env: | |
MAX_ALLOCS_ALLOWED_base64_decoding: 1000 | |
MAX_ALLOCS_ALLOWED_base64_encoding: 1000 | |
MAX_ALLOCS_ALLOWED_base32_decoding: 1000 | |
MAX_ALLOCS_ALLOWED_base32_encoding: 1000 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Test | |
run: ./run-tests.sh | |
working-directory: ./IntegrationTests | |
"macOS-Tests": | |
runs-on: macOS-14 | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: SPM Tests | |
run: swift test --parallel --enable-code-coverage -Xswiftc -DDEBUG | |
- name: Convert coverage files | |
run: xcrun llvm-cov export -format="lcov" .build/debug/swift-extras-base64PackageTests.xctest/Contents/MacOS/swift-extras-base64PackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v4 | |
with: | |
file: info.lcov | |
"macOS-Performance-Tests": | |
runs-on: macOS-13 | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build & run | |
run: swift run -c release |