We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de3a9f6 commit a0be22eCopy full SHA for a0be22e
1 file changed
.github/workflows/dart.yml
@@ -0,0 +1,40 @@
1
+name: Build and Test Dart
2
+on:
3
+ pull_request:
4
+ paths:
5
+ - payjoin-ffi/**
6
+
7
+jobs:
8
+ test:
9
+ runs-on: ${{ matrix.os }}
10
+ defaults:
11
+ run:
12
+ working-directory: payjoin-ffi/dart
13
+ strategy:
14
+ matrix:
15
+ os: [ubuntu-latest, macos-latest]
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v4
19
20
+ - name: Install Dart
21
+ uses: dart-lang/setup-dart@v1
22
+ with:
23
+ sdk: stable
24
25
+ - name: "Use cache"
26
+ uses: Swatinem/rust-cache@v2
27
28
+ - name: Generate bindings and binaries
29
+ run: |
30
+ if [ "${{ matrix.os }}" = "macos-latest" ]; then
31
+ bash ./scripts/generate_macos.sh
32
+ else
33
+ bash ./scripts/generate_linux.sh
34
+ fi
35
36
+ - name: Install dependencies
37
+ run: dart pub get
38
39
+ - name: Run tests
40
+ run: dart test
0 commit comments