Skip to content

Commit ce4c756

Browse files
fix pipeline issues
1 parent 4853cf9 commit ce4c756

9 files changed

Lines changed: 62 additions & 46 deletions

File tree

.github/workflows/build-example-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v2
1313
with:
14-
node-version: 16
14+
node-version: 20
1515
- uses: actions/cache@v3
1616
with:
1717
path: node_modules

.github/workflows/build-sdk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v2
1313
with:
14-
node-version: 16
14+
node-version: 20
1515
- uses: actions/cache@v3
1616
with:
1717
path: node_modules

.github/workflows/create-test-applications.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Create Test Applications
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77
schedule:
8-
- cron: "0 0 1 * *" # every month
8+
- cron: "0 0 1 * *" # every month
99

1010
jobs:
1111
Build_Android:
@@ -19,47 +19,47 @@ jobs:
1919
- 0.70.1
2020

2121
steps:
22-
- uses: actions/checkout@v2
23-
- uses: actions/setup-node@v2
24-
with:
25-
node-version: 16
26-
cache: npm
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: 20
26+
cache: npm
2727

28-
- uses: actions/cache@v3
29-
with:
30-
path: node_modules
31-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
32-
restore-keys: |
33-
${{ runner.os }}-node-
34-
- uses: actions/cache@v3
35-
with:
36-
path: TestApplication
37-
key: ${{ runner.os }}-test-app-node-${{ hashFiles('TestApplication/package-lock.json') }}
38-
restore-keys: |
39-
${{ runner.os }}-test-app-node-
40-
- uses: actions/cache@v3
41-
with:
42-
path: ~/.gradle/caches
43-
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('TestApplication/android/gradle/wrapper/gradle-wrapper.properties') }}
44-
restore-keys: |
45-
${{ runner.os }}-gradle-caches-
28+
- uses: actions/cache@v3
29+
with:
30+
path: node_modules
31+
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
32+
restore-keys: |
33+
${{ runner.os }}-node-
34+
- uses: actions/cache@v3
35+
with:
36+
path: TestApplication
37+
key: ${{ runner.os }}-test-app-node-${{ hashFiles('TestApplication/package-lock.json') }}
38+
restore-keys: |
39+
${{ runner.os }}-test-app-node-
40+
- uses: actions/cache@v3
41+
with:
42+
path: ~/.gradle/caches
43+
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('TestApplication/android/gradle/wrapper/gradle-wrapper.properties') }}
44+
restore-keys: |
45+
${{ runner.os }}-gradle-caches-
4646
47-
- run: npm install
48-
- run: npm pack
47+
- run: npm install
48+
- run: npm pack
4949

50-
- name: Create React Native v${{ matrix.version }} application
51-
run: bin/create-test-application ${{ matrix.version }}
52-
env:
53-
INTEGRATION_TEST_APP_NAME: TestApplication
54-
INTEGRATION_TEST_NO_RUN_APP: 1
50+
- name: Create React Native v${{ matrix.version }} application
51+
run: bin/create-test-application ${{ matrix.version }}
52+
env:
53+
INTEGRATION_TEST_APP_NAME: TestApplication
54+
INTEGRATION_TEST_NO_RUN_APP: 1
5555

56-
- name: Build Android APK
57-
working-directory: TestApplication/android
58-
run: ./gradlew assembleRelease
56+
- name: Build Android APK
57+
working-directory: TestApplication/android
58+
run: ./gradlew assembleRelease
5959

60-
- name: Upload Android APK
61-
uses: actions/upload-artifact@v3
62-
with:
63-
name: android-release-react-native-${{ matrix.version }}
64-
path: TestApplication/android/app/build/outputs/apk/release/
65-
retention-days: 7
60+
- name: Upload Android APK
61+
uses: actions/upload-artifact@v3
62+
with:
63+
name: android-release-react-native-${{ matrix.version }}
64+
path: TestApplication/android/app/build/outputs/apk/release/
65+
retention-days: 7

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v2
1313
with:
14-
node-version: 16
14+
node-version: 20
1515
- uses: actions/cache@v3
1616
with:
1717
path: node_modules

.github/workflows/npm-audit-example-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-node@v2
1515
with:
16-
node-version: 16
16+
node-version: 20
1717

1818
- name: Run npm audit (app)
1919
run: npm audit --audit-level=high

.github/workflows/npm-audit-sdk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-node@v2
1515
with:
16-
node-version: 16
16+
node-version: 20
1717

1818
- name: Run npm audit
1919
run: npm audit --audit-level=high

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Fixed
1515

16+
## [1.1.7]
17+
18+
### Changed
19+
20+
- Now using vite to build
21+
- Using vite to populate the version instead of running a script
22+
- Example app is now using the built files instead of pointing directly at src
23+
24+
### Fixed
25+
26+
- SDK version now stays up to date when running `npm run dev`
27+
1628
## [1.1.6]
1729

1830
### Fixed

test/mocks/setup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { beforeAll, afterEach, afterAll } from "vitest"
12
import { server } from "./server"
23

34
beforeAll(() => server.listen())

vitest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import { defineConfig } from "vitest/config"
22
import react from "vitest-react-native"
33

44
export default defineConfig({
5+
define: {
6+
__SDK_VERSION__: JSON.stringify("test-version"),
7+
},
58
plugins: [react()],
69
test: {
710
globals: true,

0 commit comments

Comments
 (0)