Skip to content

Commit e80651b

Browse files
authored
ci: Check release process in PR (#181)
* ci: Check release process in PR * ci: Require integration test to be releaseable * fix(ci): Add - to parameter list * fix(ci): Unzip before untar * fix(ci): Use sudo to move binary to path
1 parent 65ff808 commit e80651b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci-pull-request.yml

+35
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
jobs:
99
test:
10+
needs:
11+
- test-release
1012
strategy:
1113
max-parallel: 1
1214
fail-fast: true
@@ -55,3 +57,36 @@ jobs:
5557
SDC_MONITOR_URL: "https://app-staging.sysdigcloud.com"
5658
SDC_SECURE_URL: "https://secure-staging.sysdig.com"
5759
run: poetry run mamba -f documentation -t integration
60+
61+
test-release:
62+
runs-on: ubuntu-latest
63+
steps:
64+
- uses: actions/checkout@v2
65+
with:
66+
fetch-depth: 0
67+
68+
- name: Setup go-chglog
69+
working-directory: /tmp
70+
env:
71+
VERSION: "0.10.0"
72+
run: |
73+
wget https://github.com/git-chglog/git-chglog/releases/download/v${VERSION}/git-chglog_${VERSION}_linux_amd64.tar.gz
74+
gunzip git-chglog_${VERSION}_linux_amd64.tar.gz
75+
tar -xvf git-chglog_${VERSION}_linux_amd64.tar
76+
sudo mv git-chglog /usr/local/bin/
77+
78+
- name: Generate changelog
79+
run: git-chglog -c .github/git-chglog/config.yml -o RELEASE_CHANGELOG.md $(git describe --tags $(git rev-list --tags --max-count=1))
80+
81+
- name: Set up Python
82+
uses: actions/setup-python@v2
83+
with:
84+
python-version: 3.8
85+
86+
- name: Install dependencies
87+
run: |
88+
python -m pip install --upgrade pip
89+
pip install poetry poetry-dynamic-versioning
90+
91+
- name: Build
92+
run: poetry build

0 commit comments

Comments
 (0)