e2e #111
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: e2e | |
| on: | |
| push: | |
| branches: [main] | |
| schedule: | |
| # Run daily at 06:00 UTC | |
| - cron: "0 6 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Start SSH SOCKS proxy | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "${{ secrets.VPS_SSH_KEY }}" > ~/.ssh/proxy_key | |
| chmod 600 ~/.ssh/proxy_key | |
| ssh -o StrictHostKeyChecking=no -D 1080 -f -N -i ~/.ssh/proxy_key clawdbot@46.225.30.1 | |
| - name: Run E2E tests | |
| env: | |
| GARMIN_EMAIL: ${{ secrets.GARMIN_EMAIL }} | |
| GARMIN_PASSWORD: ${{ secrets.GARMIN_PASSWORD }} | |
| HTTP_PROXY: socks5://localhost:1080 | |
| HTTPS_PROXY: socks5://localhost:1080 | |
| run: make test-e2e |