Skip to content

Commit 534aa36

Browse files
authored
Build spec during PR workflow (#182)
Use bikeshed to build the spec as part of the PR workflow to try and prevent breaking changes being merged. Signed-off-by: Joshua Lock <jlock@vmware.com>
1 parent 8dafd00 commit 534aa36

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/pr.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,35 @@ on:
66

77
jobs:
88
main:
9-
name: Check date and version are updated
9+
name: Sanity checks before a PR merge
1010
runs-on: ubuntu-20.04
1111
steps:
1212
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
1313
with:
1414
fetch-depth: 0 # we want all refs for the --is-ancestor check
15+
1516
- name: Set up Python
1617
uses: actions/setup-python@dc73133d4da04e56a135ae2246682783cc7c7cb6
1718
with:
1819
python-version: 3.x
20+
21+
- name: Find pip cache dir
22+
id: pip-cache
23+
run: echo "::set-output name=dir::$(pip cache dir)"
24+
25+
- name: pip cache
26+
uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6
27+
with:
28+
# Use the os dependent pip cache directory found above
29+
path: ${{ steps.pip-cache.outputs.dir }}
30+
# A match with 'key' counts as cache hit
31+
key: ${{ runner.os }}-pip-
32+
33+
- name: Ensure changes build
34+
run: |
35+
python -m pip install bikeshed
36+
mkdir build && cd build
37+
make -f ../Makefile spec
38+
1939
- name: Check date and version
2040
run: python check_release.py

0 commit comments

Comments
 (0)