forked from monagle-au/redis-lock
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 937 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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