tests: split tests to version and tag

This commit is contained in:
Jose Diaz-Gonzalez
2021-04-24 14:03:02 -04:00
parent ec45752306
commit ad13120ef9

View File

@@ -11,17 +11,48 @@ on:
- master
jobs:
unit-tests:
unit-tests-master:
name: unit-tests
runs-on: ubuntu-18.04
strategy:
fail-fast: true
matrix:
dokku-version:
- master
- v0.19.0
env:
DOKKU_VERSION: ${{ matrix.dokku-version }}
DOKKU_VERSION: master
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.7.x'
- run: make setup
- run: sudo sysctl -w vm.max_map_count=262144
- run: |
make generate
if ! git diff --quiet README.md; then
echo "Please run `make generate`"
git status --short
git --no-pager diff README.md
exit 1
fi
- run: make test
- uses: actions/upload-artifact@v2
if: failure()
with:
name: tmp/test-results
path: test-results
unit-tests-0.19.0:
name: unit-tests-0.19.0
runs-on: ubuntu-18.04
strategy:
fail-fast: true
env:
DOKKU_TAG: v0.19.0
steps:
- uses: actions/checkout@v2