Skip to content

ci: Update swift-code-coverage.yml and drop swift 5.8 build #189

ci: Update swift-code-coverage.yml and drop swift 5.8 build

ci: Update swift-code-coverage.yml and drop swift 5.8 build #189

name: Swift Linux build older versions
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main, next ]
jobs:
build-linux-previous:
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
swift: ["5.9", "5.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- name: Swift version
run: swift --version
- uses: actions/checkout@v3
- name: Start consul
uses: ./.github/actions/consul-start
- name: Ubuntu deps
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get install -y libjemalloc-dev
- name: Swift version
run: swift --version
- name: Build
run: swift build
- name: Run tests
run: |
if [ -d Tests ]; then
swift test --parallel
fi