Skip to content

Commit bd1f5cc

Browse files
committed
feat: update gh actions
1 parent 2cce5e5 commit bd1f5cc

File tree

4 files changed

+63
-57
lines changed

4 files changed

+63
-57
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@ _Describe the PR shortly_
2222
- [ ] `sdkVersion` property in logs is correct
2323
- [ ] `sdkPlatform` property in logs is correct
2424

25+
# dSYMs:
26+
- [ ] attached
27+
2528
# Resolved issues
2629
_list of issues resolved by this PR_

.github/actions/setup/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ runs:
55
using: composite
66
steps:
77
- name: Setup Node.js
8-
uses: actions/setup-node@v4
8+
uses: actions/setup-node@v6
99
with:
10-
node-version: '20'
10+
node-version: '24'
1111
node-version-file: .nvmrc
12-
12+
1313
- name: Upgrade npm for trusted publishing
1414
run: npm install -g npm@latest
1515
shell: bash

.github/workflows/ci.yml

Lines changed: 32 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v6
1616

1717
- name: Setup
1818
uses: ./.github/actions/setup
@@ -31,25 +31,12 @@ jobs:
3131
- name: Format check
3232
run: yarn prettier --check
3333

34-
# no tests yet 😥
35-
# test:
36-
# runs-on: ubuntu-latest
37-
# steps:
38-
# - name: Checkout
39-
# uses: actions/checkout@v4
40-
41-
# - name: Setup
42-
# uses: ./.github/actions/setup
43-
44-
# - name: Run unit tests
45-
# run: yarn test --maxWorkers=2 --coverage
46-
4734
build-library:
4835
runs-on: ubuntu-latest
4936
needs: [lint]
5037
steps:
5138
- name: Checkout
52-
uses: actions/checkout@v4
39+
uses: actions/checkout@v6
5340

5441
- name: Setup
5542
uses: ./.github/actions/setup
@@ -62,23 +49,23 @@ jobs:
6249
needs: build-library
6350
steps:
6451
- name: Checkout
65-
uses: actions/checkout@v4
52+
uses: actions/checkout@v6
6653

6754
- name: Setup
6855
uses: ./.github/actions/setup
6956

7057
- name: Install JDK
71-
uses: actions/setup-java@v4
58+
uses: actions/setup-java@v5
7259
with:
73-
distribution: 'zulu'
74-
java-version: '17'
60+
distribution: "zulu"
61+
java-version: "17"
7562

7663
- name: Finalize Android SDK
7764
run: |
7865
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
7966
8067
- name: Cache Gradle
81-
uses: actions/cache@v4
68+
uses: actions/cache@v5
8269
with:
8370
path: |
8471
~/.gradle/wrapper
@@ -95,30 +82,28 @@ jobs:
9582
yarn build:android
9683
9784
# !! Currently build iOS is not working due to issues with XCode version
98-
# build-ios:
99-
# runs-on: macos-14
100-
# needs: build-library
101-
102-
# steps:
103-
# - name: Checkout
104-
# uses: actions/checkout@v4
105-
106-
# - name: Setup Xcode version
107-
# uses: maxim-lobanov/setup-xcode@v1.6.0
108-
# with:
109-
# xcode-version: '15.4.0'
110-
111-
112-
113-
# - name: Setup
114-
# uses: ./.github/actions/setup
115-
116-
# - name: Install cocoapods
117-
# run: |
118-
# cd example/ios
119-
# pod install
120-
121-
# - name: Build example for iOS
122-
# working-directory: ./example
123-
# run: |
124-
# yarn build:ios
85+
# build-ios:
86+
# runs-on: macos-14
87+
# needs: build-library
88+
89+
# steps:
90+
# - name: Checkout
91+
# uses: actions/checkout@v4
92+
93+
# - name: Setup Xcode version
94+
# uses: maxim-lobanov/setup-xcode@v1.6.0
95+
# with:
96+
# xcode-version: '15.4.0'
97+
98+
# - name: Setup
99+
# uses: ./.github/actions/setup
100+
101+
# - name: Install cocoapods
102+
# run: |
103+
# cd example/ios
104+
# pod install
105+
106+
# - name: Build example for iOS
107+
# working-directory: ./example
108+
# run: |
109+
# yarn build:ios

.github/workflows/publish-release.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v6
2424

2525
- name: Setup
2626
uses: ./.github/actions/setup
@@ -36,19 +36,37 @@ jobs:
3636
- name: Get latest version
3737
run: echo "PACKAGE_VERSION=$(node scripts/extract_version.js)" >> $GITHUB_ENV
3838

39+
- name: Download dSYMs
40+
env:
41+
PR_BODY: ${{ github.event.pull_request.body }}
42+
run: |
43+
url=$(echo "$PR_BODY" | grep -oE 'https://[^ )]*dSYMs\.zip' | head -n 1)
44+
if [ -n "$url" ]; then
45+
echo "Found dSYMs URL: $url"
46+
curl -L -o dSYMs.zip "$url"
47+
else
48+
echo "No dSYMs.zip URL found in PR body."
49+
fi
50+
3951
- name: GitHub Release
40-
uses: softprops/action-gh-release@v2
41-
with:
42-
name: freeRASP ${{ env.PACKAGE_VERSION }}
43-
tag_name: v${{ env.PACKAGE_VERSION }}
44-
body_path: ${{ github.workspace }}-CURRENT_CHANGELOG.md
52+
env:
53+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
run: |
55+
FILES=""
56+
if [ -f dSYMs.zip ]; then
57+
FILES="dSYMs.zip"
58+
fi
59+
gh release create v${{ env.PACKAGE_VERSION }} \
60+
--title "freeRASP ${{ env.PACKAGE_VERSION }}" \
61+
--notes-file ${{ github.workspace }}-CURRENT_CHANGELOG.md \
62+
$FILES
4563
4664
publish_npmjs:
4765
name: Publish release to npm.js
4866
needs: release_gh
4967
runs-on: ubuntu-latest
5068
steps:
51-
- uses: actions/checkout@v4
69+
- uses: actions/checkout@v6
5270

5371
- name: Setup
5472
uses: ./.github/actions/setup

0 commit comments

Comments
 (0)