From 3e9fe3a99ae3f4250e1d3788f5f3b4cc0c21e6ac Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 2 Jun 2021 15:34:46 +0200 Subject: CI: add a "check mapfiles" action (#1828) --- .github/workflows/build.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.github') diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 22134e98..b2d7050c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -29,6 +29,20 @@ jobs: run: py.test if: runner.os == 'Windows' && ! contains(matrix['python-version'], 'pypy') + check-mapfiles: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - name: Regenerate mapfiles + run: make mapfiles + - name: Fail if mapfiles changed + run: | + if git ls-files -m | grep mapping; then + echo 'Please run "make mapfiles" and add the changes to a commit.' + exit 1 + fi + lint: runs-on: ubuntu-latest steps: -- cgit v1.2.1