Skip to content

Commit 25c6467

Browse files
authored
Merge pull request #43445 from Expensify/Rory-FixWorkflowTests
[No QA] Fix workflow tests
2 parents 2907a4e + 336db4e commit 25c6467

File tree

4 files changed

+21
-44
lines changed

4 files changed

+21
-44
lines changed

.github/workflows/testGithubActionsWorkflows.yml

+7
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ jobs:
2525
- name: Setup Homebrew
2626
uses: Homebrew/actions/setup-homebrew@master
2727

28+
- name: Login to GitHub Container Regstry
29+
uses: docker/login-action@v3
30+
with:
31+
registry: ghcr.io
32+
username: OSBotify
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
2835
- name: Install Act
2936
run: brew install act
3037

package-lock.json

+8-43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"@gorhom/portal": "^1.0.14",
7979
"@invertase/react-native-apple-authentication": "^2.2.2",
8080
"@kie/act-js": "^2.6.0",
81-
"@kie/mock-github": "^1.0.0",
81+
"@kie/mock-github": "2.0.1",
8282
"@onfido/react-native-sdk": "10.6.0",
8383
"@react-native-camera-roll/camera-roll": "7.4.0",
8484
"@react-native-clipboard/clipboard": "^1.13.2",

workflow_tests/utils/ExtendedAct.ts

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// This eslint-disable comment is here to allow accessing private properties in the Act class
33
import type {RunOpts, Step, Workflow} from '@kie/act-js';
44
import {Act} from '@kie/act-js';
5+
import os from 'os';
56
import path from 'path';
67
import JobMocker from './JobMocker';
78
import type {MockJobs} from './JobMocker';
@@ -23,6 +24,10 @@ class ExtendedAct extends Act {
2324
actArguments.push('--actor', opts.actor);
2425
}
2526

27+
if (os.arch() === 'arm64') {
28+
actArguments.push('--container-architecture', 'linux/amd64');
29+
}
30+
2631
return {cwd, actArguments, proxy};
2732
}
2833

0 commit comments

Comments
 (0)