Skip to content

Fixup CI by adding Redis service, add platform specifications, respec… #2

Fixup CI by adding Redis service, add platform specifications, respec…

Fixup CI by adding Redis service, add platform specifications, respec… #2

Workflow file for this run

name: test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
push: { branches: [ main ] }
env:
REDIS_HOSTNAME: redis
REDIS_PORT: 6379
jobs:
linux-unit:
if: ${{ !(github.event.pull_request.draft || false) }}
strategy:
fail-fast: false
matrix:
swiftver:
- swift:5.6-focal
- swift:5.7-jammy
- swift:5.8-jammy
- swiftlang/swift:nightly-5.9-jammy
- swiftlang/swift:nightly-main-jammy
redis:
- redis:6
- redis:7
runs-on: ubuntu-latest
container: ${{ matrix.swiftver }}
services:
redis:
image: ${{ matrix.redis }}
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Run unit tests
run: swift test --sanitize=thread --enable-code-coverage