Skip to content

Commit

Permalink
Use macOS ARM64 binary in end to end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timrogers committed Oct 8, 2024
1 parent 661f543 commit 8efc01f
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,20 @@ jobs:
- run: npm run lint
end_to_end_tests_macos:
name: Run end to end tests (GitHub.com to GitHub.com on macOS)
needs: ['package-macos']
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.0.4
- name: Download macOS ARM64 binary
uses: actions/download-artifact@v4
with:
node-version: 20.x
cache: 'npm'
- run: npm ci
- name: Generate binaries for macOS, Linux and Windows
run: npm run package
- name: Rename macOS binary to conform to GitHub CLI extension rules
run: mv bin/migrate-project-macos bin/gh-migrate-project-darwin-amd64
name: gh-migrate-project-darwin-arm64
path: bin
- name: Create `output` directory
run: mkdir output
- name: Make macOS binary executable
run: chmod +x bin/gh-migrate-project-darwin-amd64
run: chmod +x bin/gh-migrate-project-darwin-arm64
- name: Export a project from GitHub.com
run: ./bin/gh-migrate-project-darwin-amd64 export --project-owner gh-migrate-project-sandbox --project-number 1026 --disable-telemetry
run: ./bin/gh-migrate-project-darwin-arm64 export --project-owner gh-migrate-project-sandbox --project-number 1026 --disable-telemetry
env:
EXPORT_GITHUB_TOKEN: ${{ secrets.GH_MIGRATE_PROJECT_SANDBOX_TOKEN }}
- name: Copy outputs to output/ directory
Expand All @@ -51,7 +47,7 @@ jobs:
echo "source_repository,target_repository
gh-migrate-project-sandbox/initial-repository,gh-migrate-project-sandbox/initial-repository" > completed-repository-mappings.csv
- name: Import project to GitHub.com
run: ./bin/gh-migrate-project-darwin-amd64 import --input-path project.json --repository-mappings-path completed-repository-mappings.csv --project-owner gh-migrate-project-sandbox --disable-telemetry
run: ./bin/gh-migrate-project-darwin-arm64 import --input-path project.json --repository-mappings-path completed-repository-mappings.csv --project-owner gh-migrate-project-sandbox --disable-telemetry
env:
IMPORT_GITHUB_TOKEN: ${{ secrets.GH_MIGRATE_PROJECT_SANDBOX_TOKEN }}
- name: Upload outputs as artifacts
Expand Down

0 comments on commit 8efc01f

Please sign in to comment.