forked from vkuttyp/SQLClient-Swift
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 912 Bytes
/
swift.yml
File metadata and controls
39 lines (32 loc) · 912 Bytes
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build & Test
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.4.app
- name: Install Dependencies
run: |
brew install freetds pkg-config
- name: Build
run: |
export PKG_CONFIG_PATH="${{ github.workspace }}/ci"
echo "pkg-config check: $(pkg-config --cflags --libs freetds)"
swift build -v
- name: Test
run: |
export PKG_CONFIG_PATH="${{ github.workspace }}/ci"
swift test -v
env:
HOST: ${{ secrets.DB_HOST }}
USERNAME: ${{ secrets.DB_USERNAME }}
PASSWORD: ${{ secrets.DB_PASSWORD }}
DATABASE: ${{ secrets.DB_DATABASE }}