Skip to content

Commit e9e035a

Browse files
authored
Merge pull request #781 from medyagh/add_windows_test
test: add dry-run tests for windows and macos
2 parents 1e6b016 + 6d4f8d6 commit e9e035a

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/dry-run.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: "dry-run"
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
schedule:
9+
- cron: "0 */4 * * *"
10+
push:
11+
branches:
12+
- master
13+
- 'releases/*'
14+
defaults:
15+
run:
16+
shell: bash
17+
concurrency:
18+
group: dry-run-${{ github.event.pull_request.number || github.ref }}
19+
cancel-in-progress: true
20+
jobs:
21+
dry-run:
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
os:
26+
- ubuntu-24.04
27+
- ubuntu-22.04
28+
- ubuntu-24.04-arm
29+
- macos-latest
30+
- windows-latest
31+
runs-on: ${{ matrix.os }}
32+
steps:
33+
- id: info-block
34+
uses: medyagh/info-block@main
35+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
36+
- name: Install Docker CLI (macOS only)
37+
if: runner.os == 'macOS'
38+
run: |
39+
brew update
40+
brew install docker
41+
- name: install vfkit and tools needed
42+
if: runner.os == 'macOS'
43+
shell: bash
44+
run: |
45+
brew update
46+
brew install vfkit
47+
curl -fsSL https://github.com/minikube-machine/vmnet-helper/releases/latest/download/install.sh | sudo VMNET_INTERACTIVE=0 bash
48+
fw=/usr/libexec/ApplicationFirewall/socketfilterfw
49+
sudo $fw --remove /usr/libexec/bootpd
50+
sudo $fw --add /usr/libexec/bootpd
51+
sudo $fw --unblock /usr/libexec/bootpd
52+
- uses: ./
53+
with:
54+
start-args: --download-only
55+
- uses: ./
56+
with:
57+
start-args: --dry-run

0 commit comments

Comments
 (0)