-
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (75 loc) · 2.04 KB
/
test.yml
File metadata and controls
77 lines (75 loc) · 2.04 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Build source code and test it
on:
push:
branches:
- renovate/**
pull_request:
branches: [ main ]
workflow_call: # Allow this workflow to be called by other workflows
jobs:
guard_swiftpm_version:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v6
- name: Enforce capacitor-swift-pm version
run: |
set -euo pipefail
if ! grep -Eq 'https://github.com/ionic-team/capacitor-swift-pm\.git"[[:space:]]*,[[:space:]]*from:[[:space:]]*"8\.0\.0"' Package.swift; then
echo "Expected capacitor-swift-pm to be pinned to 8.0.0 in Package.swift"
exit 1
fi
build_android:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
id: install_code
run: bun i
- name: Check plugin wiring
run: bun run check:wiring
- name: Setup java
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: '21'
- name: Build
id: build_code
run: npm run verify:android
build_ios:
runs-on: macOS-latest
steps:
- name: Check out
uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
id: install_code
run: bun i
- name: Check plugin wiring
run: bun run check:wiring
- name: Build
id: build_code
run: npm run verify:ios
web:
runs-on: ubuntu-latest
name: 'Build code and test'
steps:
- name: Check out
uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
id: install_code
run: bun i
- name: Check plugin wiring
run: bun run check:wiring
- name: Lint
id: lint_code
run: bun run lint
- name: Build
id: build_code
run: bun run build
- name: Verify
id: verify_code
run: bun run verify:web