Skip to content

Commit

Permalink
Build spec during PR workflow (#182)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
joshuagl authored Sep 7, 2021
1 parent 8dafd00 commit 534aa36
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,35 @@ on:

jobs:
main:
name: Check date and version are updated
name: Sanity checks before a PR merge
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
with:
fetch-depth: 0 # we want all refs for the --is-ancestor check

- name: Set up Python
uses: actions/setup-python@dc73133d4da04e56a135ae2246682783cc7c7cb6
with:
python-version: 3.x

- name: Find pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"

- name: pip cache
uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6
with:
# Use the os dependent pip cache directory found above
path: ${{ steps.pip-cache.outputs.dir }}
# A match with 'key' counts as cache hit
key: ${{ runner.os }}-pip-

- name: Ensure changes build
run: |
python -m pip install bikeshed
mkdir build && cd build
make -f ../Makefile spec
- name: Check date and version
run: python check_release.py

0 comments on commit 534aa36

Please sign in to comment.