Arena Reservations - Calistenia #22
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: Arena Reservations - Calistenia | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # Martes, jueves y viernes a las 18:00 UTC --> 19:00 hora local | |
| - cron: '0 18 * * 2,4,5' | |
| concurrency: | |
| group: reservations-calistenia-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| run-calistenia: | |
| runs-on: ubuntu-latest | |
| env: | |
| CI: false | |
| ARENA_USER: ${{ secrets.ARENA_USER }} | |
| ARENA_PASSWORD: ${{ secrets.ARENA_PASSWORD }} | |
| ACTIVITY_CONFIG: | | |
| { | |
| "calistenia": { | |
| "activityId": 28, | |
| "allowedDays": [2, 4, 5], | |
| "minHour": 17, | |
| "minMinutes": 30, | |
| "requireOpenWindow": true, | |
| "enabled": false | |
| } | |
| } | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Playwright browser (Chromium) | |
| run: npx playwright install --with-deps chromium | |
| - name: Run Calistenia reservation test | |
| run: npx playwright test tests/gym-reservations.spec.ts --project=chromium --reporter=list |