-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1.02 KB
/
build-and-test.yaml
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
name: Build and Test
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Publish to MavenLocal
run: ./gradlew publishToMavenLocal
- name: Run tests
run: ./gradlew iosSimulatorArm64Test iosX64Test jvmTest testDebugUnitTest
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: "21.x"
- name: generate js library for flipper
run: |
./gradlew core:websocket:event:jsNodeProductionLibraryDistribution \
tooling:model:jsNodeProductionLibraryDistribution \
tooling:flipper-lib:jsNodeProductionLibraryDistribution
- run: yarn install
working-directory: flipper-plugin
- run: yarn tsc
working-directory: flipper-plugin