-
-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (51 loc) · 1.51 KB
/
test-23ai.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
52
53
54
55
name: Oracle 23ai Database
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
container:
image: swift:6.0-jammy
services:
oracle:
image: gvenzl/oracle-free:23
env:
ORACLE_PASSWORD: my_very_secure_password
APP_USER: my_user
APP_USER_PASSWORD: my_password
ports:
- 1521:1521
options: >-
--health-cmd healthcheck.sh
--health-interval 10s
--health-timeout 5s
--health-retries 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set DEBUG specific environment variables
if: runner.debug == '1'
run: |
echo "LOG_LEVEL=trace" >> "$GITHUB_ENV"
- name: Build
run: swift build
- name: Run tests
run: swift test --enable-code-coverage
env:
ORA_HOSTNAME: oracle
ORA_PORT: 1521
ORA_SERVICE_NAME: FREEPDB1
ORA_USERNAME: my_user
ORA_PASSWORD: my_password
# TEST_VECTORS: true # current version of 23ai has a weird configuration issue by default
TEST_PRIVILEGED: true
TEST_COMPRESSED_JSON: true
- name: Prepare Code Coverage
run: llvm-cov export -format="lcov" .build/debug/oracle-nioPackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: info.lcov