-
-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (41 loc) · 1.15 KB
/
tests.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
37
38
39
40
41
42
43
44
45
46
47
name: tests
on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'
# Cancel previous running if a new push is made
# Source: https://stackoverflow.com/a/72408109/123545
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install and start dependencies
run: |
brew install docker
brew install colima
# https://github.com/abiosoft/colima/issues/424#issuecomment-1335912905
colima delete
colima start --arch x86_64
- name: Run Typesense
run: |
mkdir $(pwd)/typesense-data
docker run -p 8108:8108 \
-d \
-v$(pwd)/typesense-data:/data typesense/typesense:27.0.rc35 \
--data-dir /data \
--api-key=xyz \
--enable-cors
shell: bash
- name: Set up Xcode
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable
- name: Run tests
run: swift test