Skip to content

test

test #6

Workflow file for this run

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" &