Fix admin user management flows #1769
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: 'Api-tests' | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| branches: | |
| - '**' | |
| jobs: | |
| api-tests: | |
| name: 'Api tests' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Create env-files | |
| env: | |
| GEONAMES_USERNAME: ${{ secrets.GEONAMES_USERNAME }} | |
| run: GEONAMES_USERNAME=$GEONAMES_USERNAME npm run config | |
| - name: 'Start containers' | |
| run: npm run start:anon:api -- --wait -d | |
| - name: Run api-tests | |
| run: npm run test:ci:api | |
| - name: Dump docker logs on failure | |
| if: failure() | |
| uses: jwalton/gh-docker-logs@v2 |