-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 961 Bytes
/
test-vagrant.yml
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
---
on:
workflow_dispatch:
inputs:
variants:
jobs:
parse-parameters:
runs-on: ubuntu-latest
steps:
- id: parse
shell: python
run: |
import re, json
variants = re.findall(r"\w+", "${{ github.event.inputs.variants }}")
variants = variants or ["freebsd", "openbsd", "netbsd"]
print("::set-output name=variants::" + json.dumps(variants))
outputs:
variants: ${{ steps.parse.outputs.variants }}
test:
needs: parse-parameters
strategy:
fail-fast: false
matrix:
variant: ${{ fromJson(needs.parse-parameters.outputs.variants) }}
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- run: echo ${{ needs.parse-parameters.outputs.variants }}
- run: vagrant up ${{ matrix.variant }}
- run: vagrant ssh ${{ matrix.variant }} -- ./test
- run: vagrant ssh ${{ matrix.variant }} -- python stdlib/availability.py