Skip to content

Commit f928af0

Browse files
committed
resolve merge leftovers
1 parent 6ce288b commit f928af0

File tree

5 files changed

+57
-14
lines changed

5 files changed

+57
-14
lines changed

.github/workflows/benchmarking.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
env: process.env,
150150
stdio: 'inherit'
151151
});
152-
152+
153153
console.log("Test exists but failed, not retrying.");
154154
core.setFailed('Test exists but failed');
155155
} catch (error) {

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
-scheme Sentry \
4040
-configuration Release \
4141
-destination platform="iOS Simulator,OS=latest,name=iPhone 14 Pro" \
42-
build 2>&1 |
42+
build 2>&1 |
4343
tee raw-analyze-output.log |
4444
xcbeautify
4545

.github/workflows/format-code.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ jobs:
2121
run: make init-ci-format
2222

2323
- run: swiftlint --version
24-
- uses: actions/setup-node@v4
25-
with:
26-
node-version-file: .nvmrc
27-
- run: corepack enable
28-
- run: yarn install
24+
- run: |
25+
curl -fsSL https://dprint.dev/install.sh | sh -s 0.50.0 > /dev/null 2>&1
26+
~/.dprint/bin/dprint fmt "**/*.{md,json,yaml,yml}"
2927
3028
- name: Format Code
3129
run: make format

.github/workflows/lint-shellcheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ on:
99
- main
1010
paths:
1111
- ".github/workflows/lint-shellcheck.yml"
12-
- "*.sh"
12+
- "**/*.sh"
1313

1414
pull_request:
1515
paths:
1616
- ".github/workflows/lint-shellcheck.yml"
17-
- "*.sh"
17+
- "**/*.sh"
1818

1919
jobs:
2020
shellcheck:

.github/workflows/version-bump-util.yml

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,66 @@ on:
1616
- "./Sources/Sentry/SentryMeta.m"
1717
- "./Tests/HybridSDKTest/HybridPod.podspec"
1818
- "./Sources/Configuration/SDK.xcconfig"
19-
- "./Sources/Configuration/Versioning.xcconfig"
19+
- "./Sources/Configuration/Versioning.xcconfig"
2020
- "./Sources/Configuration/SentrySwiftUI.xcconfig"
2121
- "./Samples/Shared/Config/Versioning.xcconfig"
22+
- "./scripts/bump.sh"
2223

2324
jobs:
2425
run-version-bump:
25-
name: Run Version Bump
26+
# The release workflow uses the Makefile to bump the version so it needs to be tested.
27+
name: Run Version Bump (Makefile)
2628
# We intentionally run this on ubuntu because the release workflow also runs on ubuntu, which uses the version bump util.
2729
runs-on: ubuntu-latest
2830
steps:
2931
- uses: actions/checkout@v4
3032
- name: Generate Version Number
33+
id: generate-version-number
3134
run: |
3235
TIMESTAMP=$(date +%Y%m%d%H%M%S)
33-
echo "VERSION=100.0.$TIMESTAMP" >> $GITHUB_ENV
36+
echo "VERSION=100.0.$TIMESTAMP" >> $GITHUB_OUTPUT
3437
# We don't care which version we bump to, as long as it's a valid semver
35-
- run: make bump-version TO=${{ env.VERSION }}
36-
- run: make verify-version TO=${{ env.VERSION }}
38+
- run: make bump-version TO=${{ steps.generate-version-number.outputs.VERSION }}
39+
- run: make verify-version TO=${{ steps.generate-version-number.outputs.VERSION }}
40+
41+
run-version-bump-script:
42+
# Craft uses the shell script to bump the version so it needs to be tested.
43+
name: Run Version Bump (Shell Script)
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
- name: Generate Version Number
48+
id: generate-version-number
49+
run: |
50+
OLD_VERSION=$(cat ./Sources/Configuration/Versioning.xcconfig | grep MARKETING_VERSION | cut -d '=' -f 2 | tr -d ' ')
51+
echo "Read old version: ${OLD_VERSION}"
52+
echo "OLD_VERSION=${OLD_VERSION}" >> $GITHUB_OUTPUT
53+
54+
NEW_VERSION="100.0.$(date +%Y%m%d%H%M%S)"
55+
echo "Generated new version: ${NEW_VERSION}"
56+
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_OUTPUT
57+
58+
- name: Verify OLD_VERSION is defined
59+
if: ${{ steps.generate-version-number.outputs.OLD_VERSION == '' }}
60+
run: |
61+
echo "OLD_VERSION is not defined. Make sure this script is reading the version from the correct file."
62+
exit 1
63+
64+
- name: Create fake xcframework for update-package-sha.sh
65+
run: |
66+
mkdir -p Carthage
67+
echo "<FAKE STATIC ZIP>" > Carthage/Sentry.xcframework.zip
68+
echo "<FAKE DYNAMIC ZIP>" > Carthage/Sentry-Dynamic.xcframework.zip
69+
70+
- name: Bump version
71+
run: ./scripts/bump.sh ${{ steps.generate-version-number.outputs.OLD_VERSION }} ${{ steps.generate-version-number.outputs.NEW_VERSION }}
72+
73+
- name: Verify outputs of bump.sh
74+
run: make verify-version TO=${{ steps.generate-version-number.outputs.NEW_VERSION }}
75+
76+
- name: Verify outputs of update-package-sha.sh
77+
run: |
78+
./scripts/verify-package-sha.sh \
79+
--static-checksum "7062a80f8a80f8b6d812698af87384751567a6aaa0df6f03b0596d728b22dcfd" \
80+
--dynamic-checksum "f6325cd8f05523d60222451fa61b3cd3d58148e5a21236f82abfd3f92750c87c" \
81+
--last-release-runid "${{ github.run_id }}"

0 commit comments

Comments
 (0)