2022-10-22 04:47:13 +02:00
|
|
|
# This workflow runs e2e smoke test for hobby deployment
|
|
|
|
# To check on the status of the instance if this fails go to DO open the instance
|
|
|
|
# Instance name should look like `do-ci-hobby-deploy-xxxx`
|
|
|
|
# SSH onto the instance and `tail -f /var/log/cloud-init-output.log`
|
|
|
|
name: e2e - hobby smoke test
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'release-*.*'
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2023-05-09 18:20:11 +02:00
|
|
|
- docker-compose.base.yml
|
2022-10-22 04:47:13 +02:00
|
|
|
- docker-compose.hobby.yml
|
2023-05-09 18:20:11 +02:00
|
|
|
- bin/*
|
|
|
|
- docker/*
|
2022-10-22 04:47:13 +02:00
|
|
|
- .github/workflows/ci-hobby.yml
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
changes:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
# this is a slow one
|
|
|
|
timeout-minutes: 30
|
|
|
|
name: Setup DO Hobby Instance and test
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.8'
|
|
|
|
cache: 'pip' # caching pip dependencies
|
2024-01-02 16:02:29 +01:00
|
|
|
cache-dependency-path: '**/requirements*.txt'
|
2023-02-06 12:36:00 +01:00
|
|
|
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
|
2022-10-22 04:47:13 +02:00
|
|
|
- name: Get python deps
|
|
|
|
run: pip install python-digitalocean==1.17.0 requests==2.28.1
|
|
|
|
- name: Run smoke tests on DO
|
2022-12-02 05:45:00 +01:00
|
|
|
run: python3 bin/hobby-ci.py $GITHUB_HEAD_REF
|
2022-10-22 04:47:13 +02:00
|
|
|
env:
|
|
|
|
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
|