Skip to content

Commit

Permalink
[Add] Github action for auto build and testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Grady Zhuo committed Jun 22, 2024
1 parent 31bf475 commit 409041a
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/swift-build-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.ACCESS_TOKEN }}
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
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

0 comments on commit 409041a

Please sign in to comment.