-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (47 loc) · 1.51 KB
/
swift-build-testing.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
48
49
50
51
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift-build-testing
on:
push:
branches: ["*"]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
swift: ["5", "6"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Run tests
run: swift test -v --enable-code-coverage
- name: Create Coverage Report
uses: sersoft-gmbh/swift-coverage-action@v4
id: coverage-files
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }}
services:
# Label used to access the service container
eventstoredb:
# Docker Hub image
image: eventstore/eventstore
ports:
- "1113:1113"
- "2113:2113"
env:
EVENTSTORE_CLUSTER_SIZE: 1
EVENTSTORE_RUN_PROJECTIONS: All
EVENTSTORE_START_STANDARD_PROJECTIONS: true
EVENTSTORE_INT_TCP_PORT: 1113
EVENTSTORE_HTTP_PORT: 2113
EVENTSTORE_INSECURE: true
EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP: true