|
51 | 51 | ./scripts/stop-influxdb.sh |
52 | 52 |
|
53 | 53 | macos: |
54 | | - runs-on: macos-latest |
55 | | - # Note: Docker does not work on Apple Silicon (macos-latest) due to lack of nested virtualization. |
56 | | - # If Docker is needed, consider using macos-13 (Intel) or Linux runners. |
| 54 | + runs-on: macos-13 |
| 55 | + # Note: macos-13 is Intel-based and will be deprecated Dec 2025. Docker is not available on any GitHub macOS runners. |
| 56 | + # Integration tests run only on Linux. macOS job verifies build compiles on macOS. |
57 | 57 |
|
58 | 58 | steps: |
59 | 59 | - uses: actions/checkout@v4 |
@@ -81,33 +81,12 @@ jobs: |
81 | 81 | run: | |
82 | 82 | chmod +x scripts/build.sh scripts/test.sh scripts/start-influxdb.sh scripts/stop-influxdb.sh |
83 | 83 | ./scripts/build.sh Release |
84 | | - |
85 | | - - name: Set up Docker on macOS |
86 | | - id: docker-setup |
87 | | - continue-on-error: true |
88 | | - uses: douglascamata/setup-docker-macos-action@v1 |
89 | | - |
90 | | - - name: Start InfluxDB |
91 | | - if: steps.docker-setup.outcome == 'success' |
92 | | - run: | |
93 | | - ./scripts/start-influxdb.sh |
94 | | - |
95 | | - - name: Run tests |
96 | | - if: steps.docker-setup.outcome == 'success' |
97 | | - run: | |
98 | | - ./scripts/test.sh |
99 | 84 | |
100 | | - - name: Skip integration tests (Docker unavailable) |
101 | | - if: steps.docker-setup.outcome != 'success' |
| 85 | + - name: Skip integration tests (Docker unavailable on macOS) |
102 | 86 | run: | |
103 | | - echo "⚠️ Docker unavailable on macOS runner - skipping integration tests" |
| 87 | + echo "⚠️ Docker is not available on GitHub Actions macOS runners" |
104 | 88 | echo "Build completed successfully, but integration tests were skipped." |
105 | | - echo "This is a known limitation of Docker on macOS GitHub Actions runners (Apple Silicon)." |
106 | | - |
107 | | - - name: Stop InfluxDB |
108 | | - if: always() && steps.docker-setup.outcome == 'success' |
109 | | - run: | |
110 | | - ./scripts/stop-influxdb.sh || true |
| 89 | + echo "For full test coverage, see the Linux runner which supports Docker natively." |
111 | 90 |
|
112 | 91 | windows: |
113 | 92 | runs-on: windows-latest |
|
0 commit comments