Skip to content

chore(deps): replace dependency npm-run-all with npm-run-all2 ^5.0.0 #68

chore(deps): replace dependency npm-run-all with npm-run-all2 ^5.0.0

chore(deps): replace dependency npm-run-all with npm-run-all2 ^5.0.0 #68

Workflow file for this run

name: ci πŸš€
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout code πŸ“₯
- name: install pnpm πŸ“¦
uses: pnpm/action-setup@v4
with:
version: 9.5.0
- name: setup node 🟒
uses: actions/setup-node@v4
with:
node-version: "20.10.0"
cache: "pnpm"
- name: install dependencies πŸ”§
run: pnpm install
- name: run check βœ…
run: pnpm check
create-plainweb:
runs-on: ubuntu-latest
steps:
- name: install pnpm πŸ“¦
uses: pnpm/action-setup@v4
with:
version: 9.5.0
- name: setup node 🟒
uses: actions/setup-node@v4
with:
node-version: "20.10.0"
- name: create plainweb project πŸͺ¨
run: |
pnpm dlx create-plainweb@latest my-plainweb-project --yes --no-git-init --debug
env:
npm_config_user_agent: ${{ github.actor }}
- name: run build, test, and check πŸš€
run: |
cd my-plainweb-project
pnpm build
pnpm test
pnpm check
- name: start server and check response 🌐
run: |
cd my-plainweb-project
pnpm start &
sleep 5 # Wait for the server to start
if curl -s http://localhost:3000 | grep -q "Let's go"; then
echo "Server started successfully and contains 'Let's go'"
else
echo "Server check failed"
exit 1
fi
kill $! # Stop the server