Repository navigation
56 lines (52 loc) · 1.48 KB
/
Copy pathcore-tests.yml
File metadata and controls
56 lines (52 loc) · 1.48 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
swift-test:
runs-on: macos-15
defaults:
run:
working-directory: VisuStruct-iOS/VisuStructCore
steps:
- uses: actions/checkout@v4
- name: Swift version
run: swift --version
- name: Build and test
run: swift test
app-build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Xcode version
run: xcodebuild -version
- name: Build app for iOS Simulator
run: |
xcodebuild build \
-project VisuStruct-iOS/VisuStructXcodeOpen/VisuStruct.xcodeproj \
-scheme VisuStruct \
-destination 'generic/platform=iOS Simulator' \
CODE_SIGNING_ALLOWED=NO
web-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: web/package-lock.json
- run: npm ci
- name: Test (Dateiformat gegen VisuStruct-Dateien)
run: npm test
- name: Build
run: npm run build
- name: website/app ist aktuell
run: |
npm run build:site
git diff --exit-code -- ../website/app || (echo "website/app ist veraltet: in web/ 'npm run build:site' ausführen und committen." && exit 1)
test -z "$(git status --porcelain -- ../website/app)"