-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.1 KB
/
ci.yml
File metadata and controls
42 lines (35 loc) · 1.1 KB
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
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: ["*"]
jobs:
build-and-test:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
configuration: [debug, release]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show Swift version
run: swift --version
- name: Build (Debug)
if: matrix.configuration == 'debug'
run: swift build
- name: Build (Release)
if: matrix.configuration == 'release'
run: swift build -c release
- name: Test
run: swift test
- name: Run parity (if local JS engine is available)
if: matrix.configuration == 'debug'
shell: bash
run: |
if [[ -f ../js-engine/algotrade3/models/src/ATTechnicalIndicators.ts || -f ../algotrade-js-trial/algotrade3/models/src/ATTechnicalIndicators.ts || -f js-engine/algotrade3/models/src/ATTechnicalIndicators.ts ]]; then
bash tools/parity/run_parity.sh
else
echo "Skipping parity: local JS engine checkout not found."
fi