Skip to content

Commit

Permalink
Merge pull request #43445 from Expensify/Rory-FixWorkflowTests
Browse files Browse the repository at this point in the history
[No QA] Fix workflow tests
  • Loading branch information
AndrewGable authored Jun 11, 2024
2 parents 2907a4e + 336db4e commit 25c6467
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 44 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/testGithubActionsWorkflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:
- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Login to GitHub Container Regstry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: OSBotify
password: ${{ secrets.GITHUB_TOKEN }}

- name: Install Act
run: brew install act

Expand Down
51 changes: 8 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@gorhom/portal": "^1.0.14",
"@invertase/react-native-apple-authentication": "^2.2.2",
"@kie/act-js": "^2.6.0",
"@kie/mock-github": "^1.0.0",
"@kie/mock-github": "2.0.1",
"@onfido/react-native-sdk": "10.6.0",
"@react-native-camera-roll/camera-roll": "7.4.0",
"@react-native-clipboard/clipboard": "^1.13.2",
Expand Down
5 changes: 5 additions & 0 deletions workflow_tests/utils/ExtendedAct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// This eslint-disable comment is here to allow accessing private properties in the Act class
import type {RunOpts, Step, Workflow} from '@kie/act-js';
import {Act} from '@kie/act-js';
import os from 'os';
import path from 'path';
import JobMocker from './JobMocker';
import type {MockJobs} from './JobMocker';
Expand All @@ -23,6 +24,10 @@ class ExtendedAct extends Act {
actArguments.push('--actor', opts.actor);
}

if (os.arch() === 'arm64') {
actArguments.push('--container-architecture', 'linux/amd64');
}

return {cwd, actArguments, proxy};
}

Expand Down

0 comments on commit 25c6467

Please sign in to comment.