mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
30 lines
654 B
YAML
30 lines
654 B
YAML
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 |