From bec2872096d41a09ac58fd02585ab6248a76696b Mon Sep 17 00:00:00 2001 From: David Boreham Date: Sun, 21 May 2023 07:38:35 -0600 Subject: [PATCH] Enable CI for deploy test --- .gitea/workflows/test-deploy.yml | 39 +++++++++++++++++++++++++++++++ .github/workflows/test-deploy.yml | 29 +++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .gitea/workflows/test-deploy.yml create mode 100644 .github/workflows/test-deploy.yml diff --git a/.gitea/workflows/test-deploy.yml b/.gitea/workflows/test-deploy.yml new file mode 100644 index 00000000..a3e8d20e --- /dev/null +++ b/.gitea/workflows/test-deploy.yml @@ -0,0 +1,39 @@ +name: Deploy Test + +on: + pull_request: + branches: '*' + push: + branches: + - main + - ci-test + +# Needed until we can incorporate docker startup into the executor container +env: + DOCKER_HOST: unix:///var/run/dind.sock + +jobs: + test: + name: "Run deploy test suite" + runs-on: ubuntu-latest + steps: + - name: "Clone project repository" + uses: actions/checkout@v3 + - name: "Install Python" + uses: cerc-io/setup-python@v4 + with: + python-version: '3.8' + - name: "Print Python version" + run: python3 --version + - name: "Install shiv" + run: pip install shiv + - name: "Generate build version file" + run: ./scripts/create_build_tag_file.sh + - name: "Build local shiv package" + run: ./scripts/build_shiv_package.sh + - name: Start dockerd # Also needed until we can incorporate into the executor + run: | + dockerd -H $DOCKER_HOST --userland-proxy=false & + sleep 5 + - name: "Run smoke tests" + run: ./tests/deploy-test/run-smoke-test.sh diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml new file mode 100644 index 00000000..71a764d4 --- /dev/null +++ b/.github/workflows/test-deploy.yml @@ -0,0 +1,29 @@ +name: Deploy Test + +on: + pull_request: + branches: '*' + push: + branches: '*' + +jobs: + test: + name: "Run deploy test suite" + runs-on: ubuntu-latest + steps: + - name: "Clone project repository" + uses: actions/checkout@v3 + - name: "Install Python" + uses: actions/setup-python@v4 + with: + python-version: '3.8' + - name: "Print Python version" + run: python3 --version + - name: "Install shiv" + run: pip install shiv + - name: "Generate build version file" + run: ./scripts/create_build_tag_file.sh + - name: "Build local shiv package" + run: ./scripts/build_shiv_package.sh + - name: "Run smoke tests" + run: ./tests/deploy-test/run-smoke-test.sh