diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07bfb84..fea4806 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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.1.0 + - 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 @@ -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