test #6
Workflow file for this run
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 Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - CI-setup | |
| push: | |
| branches: | |
| - CI-setup | |
| concurrency: | |
| group: bunsamosa-e2e-tests | |
| cancel-in-progress: false | |
| jobs: | |
| run-e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout bunsamosa repo | |
| uses: actions/checkout@v4 | |
| - name: Checkout saturn repo | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: acmpesuecc/saturn | |
| path: saturn | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - name: Create paths | |
| run: | | |
| pwd | |
| ls | |
| - name: Create bunsamosa config | |
| run: | | |
| mkdir dev-temp | |
| echo "${{ secrets.CI_APP_PRIVATE_KEY }}" > dev-temp/ci-bunsamosabot.private-key.pem | |
| cat > secrets-dev.yaml <<EOF | |
| certPath: dev-temp/ci-bunsamosabot.private-key.pem | |
| webhookSecret: ${{ secrets.CI_APP_WEBHOOK_SECRET }} | |
| appID: 1024499 | |
| orgID: 183599010 | |
| webServerPort: 4000 | |
| dbPath: test.db | |
| timerDaemonURL: http://localhost:3000 | |
| EOF | |
| cat secrets-dev.yaml | |
| - name: Run bunsamosa (dev mode) | |
| run: | | |
| make ci | |
| - name: Run saturn | |
| run: | | |
| cd saturn | |
| go run . --webhook_url="http://localhost:4000/timer" & |