From ad1e5c14d7d48388b38e9ed31a06556bf9b54943 Mon Sep 17 00:00:00 2001 From: Fausto Núñez Alberro Date: Sat, 6 Feb 2021 01:18:38 +0100 Subject: Add a workflow to check if PRs are built --- .github/workflows/pr.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pr.yml (limited to '.github/workflows/pr.yml') diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..8625c11 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,22 @@ +on: + pull_request: + branches: + - master +jobs: + run: + runs-on: ubuntu-latest + steps: + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Upgrade pip + run: python -m pip install --upgrade pip + - name: Install pybase16 + run: pip install pybase16-builder + - name: Fetch the repository code + uses: actions/checkout@v2 + - name: Run make build + run: make build + - name: Check if there are changes + run: git diff --exit-code -- cgit v1.2.3 From a4dddec3bb8ea033d2905ef5ee704ec234351937 Mon Sep 17 00:00:00 2001 From: Fausto Núñez Alberro Date: Sat, 6 Feb 2021 01:20:30 +0100 Subject: Properly name GitHub workflow --- .github/workflows/pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.github/workflows/pr.yml') diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 8625c11..f5e8385 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,9 +1,10 @@ +name: Check that `make build` does not produce additional changes on: pull_request: branches: - master jobs: - run: + check: runs-on: ubuntu-latest steps: - name: Set up Python -- cgit v1.2.3 From 71ca2d57c947e2ff8f4e2d201e81380d11e71bbf Mon Sep 17 00:00:00 2001 From: Fausto Núñez Alberro Date: Sat, 6 Feb 2021 01:55:38 +0100 Subject: Fix the PR check script --- .github/pull_request_template.md | 2 +- .github/workflows/pr.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to '.github/workflows/pr.yml') diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index d8e1e7b..0263490 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -6,6 +6,6 @@ Fixes #ISSUE_NUMBER # Checklist -- [ ] I have built the project after my changes following [the build instructions](https://github.com/fnune/base16-vim#building) using `make build` +- [ ] I have built the project after my changes following [the build instructions](https://github.com/fnune/base16-vim#building) using `make` - [ ] I have confirmed that my changes produce no regressions after building - [ ] I have pushed the built files to this pull request diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index f5e8385..b916f97 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -17,7 +17,7 @@ jobs: run: pip install pybase16-builder - name: Fetch the repository code uses: actions/checkout@v2 - - name: Run make build - run: make build + - name: Run make + run: make - name: Check if there are changes run: git diff --exit-code -- cgit v1.2.3 From a50834b935e9d469a4202d3a41e051b9129db840 Mon Sep 17 00:00:00 2001 From: Fausto Núñez Alberro Date: Sat, 6 Feb 2021 01:58:24 +0100 Subject: Update workflow name --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/pr.yml') diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b916f97..7d412ae 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,4 +1,4 @@ -name: Check that `make build` does not produce additional changes +name: Check that running `make` does not produce additional changes on: pull_request: branches: -- cgit v1.2.3