Skip to content

docs(patch): Summarised the provided helpers, with example code. (#61) #270

docs(patch): Summarised the provided helpers, with example code. (#61)

docs(patch): Summarised the provided helpers, with example code. (#61) #270

name: Swift Linux build
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main, next ]
jobs:
build-linux:
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
swift: [ "5.9" ]
runs-on: ${{ matrix.os }}
steps:
- uses: fwal/setup-swift@v1
if: ${{ false }}
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- 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