-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (57 loc) · 2.25 KB
/
Copy pathtest-arm-macos.yml
File metadata and controls
66 lines (57 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Git Compatibility Smoke on macOS ARM64
on:
push:
branches:
- main
- master
paths:
- "samples/GitCompatibilityTest/**"
- ".github/workflows/test-arm-macos.yml"
pull_request:
paths:
- "samples/GitCompatibilityTest/**"
- ".github/workflows/test-arm-macos.yml"
workflow_dispatch:
jobs:
test-on-arm-macos:
name: Shared compatibility entrypoint
runs-on: macos-14
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- name: Restore dependencies
working-directory: ./samples/GitCompatibilityTest
run: dotnet restore
- name: Build project
working-directory: ./samples/GitCompatibilityTest
run: dotnet build --configuration Release --no-restore
- name: Run compatibility-only validation
working-directory: ./samples/GitCompatibilityTest
run: |
mkdir -p ./artifacts/test-arm-macos
dotnet run --configuration Release --no-build -- \
--mode compatibility \
--repository "$GITHUB_WORKSPACE" \
--output ./artifacts/test-arm-macos | tee ./artifacts/test-arm-macos/compatibility.log
- name: Upload smoke artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: git-compatibility-smoke-macos-14-${{ github.run_id }}-${{ github.run_attempt }}
path: ./samples/GitCompatibilityTest/artifacts/test-arm-macos
retention-days: 14
- name: Publish smoke summary
if: ${{ always() }}
run: |
echo "## macOS ARM64 compatibility smoke" >> "$GITHUB_STEP_SUMMARY"
echo "" >> "$GITHUB_STEP_SUMMARY"
echo "- Runner: \`macos-14\`" >> "$GITHUB_STEP_SUMMARY"
echo "- Shared entrypoint: \`dotnet run -- --mode compatibility\`" >> "$GITHUB_STEP_SUMMARY"
echo "- Artifact directory: \`samples/GitCompatibilityTest/artifacts/test-arm-macos\`" >> "$GITHUB_STEP_SUMMARY"
echo "" >> "$GITHUB_STEP_SUMMARY"
cat ./samples/GitCompatibilityTest/artifacts/test-arm-macos/compatibility-report.md >> "$GITHUB_STEP_SUMMARY"