test: assert correct number of connected devices (#964) #75
This file contains 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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Server e2e cloud test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: npm ci | |
- run: npm run build --if-present | |
- run: node --test ./test-e2e/server.js | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
REMOTE_TEST_SERVER: true |