name: test_node on: pull_request: permissions: contents: read jobs: test_node: runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: '16' - run: npm ci - run: npm run auto_downport - run: npm run auto_transpile - run: npm run express & - name: Check for errors run: | sleep 10 if ! curl -s http://localhost:3000 | grep -q "Error"; then echo "No errors detected, stopping the workflow." exit 0 else echo "Errors detected, continuing the workflow." fi