Skip to content

Commit

Permalink
Enadle checking Change Log fragment in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Dec 7, 2023
1 parent 2c79e17 commit a818288
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,27 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.x'
# Needed for Towncrier fork to work with 3.12 and above
- name: Install setuptools
run: |
python -m pip install setuptools
- name: Install towncrier
run: |
python -m pip install https://github.com/oasisprotocol/towncrier/archive/oasis-master.tar.gz
- name: Check for presence of a Change Log fragment (only pull requests)
# NOTE: The pull request' base branch needs to be fetched so towncrier
# is able to compare the current branch with the base branch.
# Source: https://github.com/actions/checkout/#fetch-all-branches.
run: |
git fetch --no-tags origin +refs/heads/${BASE_BRANCH}:refs/remotes/origin/${BASE_BRANCH}
towncrier check --compare-with origin/${BASE_BRANCH}
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: Lint Change Log fragments
run: |
make lint-changelog
# Always run this step so that all linting errors can be seen at once.
if: always()
- name: Set up Go
uses: actions/setup-go@v3
with:
Expand Down

0 comments on commit a818288

Please sign in to comment.