Skip to content

Commit

Permalink
ci: Check release process in PR (#181)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
tembleking committed Jan 18, 2021
1 parent 65ff808 commit e80651b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:

jobs:
test:
needs:
- test-release
strategy:
max-parallel: 1
fail-fast: true
Expand Down Expand Up @@ -55,3 +57,36 @@ jobs:
SDC_MONITOR_URL: "https://app-staging.sysdigcloud.com"
SDC_SECURE_URL: "https://secure-staging.sysdig.com"
run: poetry run mamba -f documentation -t integration

test-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup go-chglog
working-directory: /tmp
env:
VERSION: "0.10.0"
run: |
wget https://github.com/git-chglog/git-chglog/releases/download/v${VERSION}/git-chglog_${VERSION}_linux_amd64.tar.gz
gunzip git-chglog_${VERSION}_linux_amd64.tar.gz
tar -xvf git-chglog_${VERSION}_linux_amd64.tar
sudo mv git-chglog /usr/local/bin/
- name: Generate changelog
run: git-chglog -c .github/git-chglog/config.yml -o RELEASE_CHANGELOG.md $(git describe --tags $(git rev-list --tags --max-count=1))

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry poetry-dynamic-versioning
- name: Build
run: poetry build

0 comments on commit e80651b

Please sign in to comment.