tests: migrate to github actions

This commit is contained in:
Jose Diaz-Gonzalez
2021-04-24 02:20:30 -04:00
parent 0be882b8a4
commit 63535f934d
3 changed files with 72 additions and 31 deletions

View File

@@ -9,27 +9,6 @@ commands:
default: "3.7.0"
steps:
- checkout
- run: pyenv global << parameters.python_version >>
- run: make setup
- run: sudo sysctl -w vm.max_map_count=262144
- run:
command: |
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
- store_artifacts:
path: build
destination: build
- store_artifacts:
path: tmp/test-results
destination: test-results
- store_test_results:
path: tmp/test-results
executors:
machine:
@@ -45,16 +24,8 @@ jobs:
steps:
- build
build-version:
environment:
DOKKU_VERSION: v0.19.0
executor: machine
steps:
- build
workflows:
version: 2
build:
jobs:
- "build-master"
- "build-version"