fix(deps): update dependency drizzle-kit to v0.24.2 - autoclosed #689
Workflow file for this run
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
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 | |
env: | |
SMTP_HOST: localhost | |
SMTP_USER: test | |
SMTP_PASS: test | |
CF_TURNSTILE_SECRET: test | |
CF_TURNSTILE_SITEKEY: test | |
ADMIN_PASSWORD: test | |
DB_URL: ":memory:" | |
- name: create-plainweb local πͺ¨ | |
run: ./create-plainweb/dist/cli.js my-plainweb-project --yes --no-git-init --debug --no-install | |
env: | |
npm_config_user_agent: ${{ github.actor }} | |
- name: ensure uses local plainweb (not npm) | |
run: | | |
echo " - \"my-plainweb-project\"" >> pnpm-workspace.yaml | |
sed -i 's/"plainweb": "[^"]*"/"plainweb": "workspace:*"/' my-plainweb-project/package.json | |
- name: install my-plainweb-project dependencies π§ | |
run: | | |
cd my-plainweb-project | |
pnpm install --frozen-lockfile=false | |
- name: run build, test, and check on my-plainweb-project π | |
run: | | |
cd my-plainweb-project | |
pnpm build | |
pnpm test | |
pnpm check | |
pnpm routes | |
- name: test server for my-plainweb-project π | |
run: | | |
cd my-plainweb-project | |
pnpm serve & | |
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 | |
rm -rf node_modules | |
create-plainweb: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
steps: | |
- name: install pnpm π¦ | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.5.0 | |
- name: create-plainweb πͺ¨ | |
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 | |
pnpm routes | |
- name: test server π | |
run: | | |
cd my-plainweb-project | |
pnpm serve & | |
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 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: deploy to fly π | |
run: | | |
cd my-plainweb-project | |
sed -i 's/app = '"'"'my-app'"'"'/app = '"'"'plainweb-template'"'"'/' fly.toml | |
sed -i '/\[http_service\]/,/\[/ s/auto_stop_machines = false/auto_stop_machines = true/' fly.toml | |
sed -i '/\[http_service\]/,/\[/ s/auto_start_machines = false/auto_start_machines = true/' fly.toml | |
sed -i '/\[http_service\]/,/\[/ s/min_machines_running = 1/min_machines_running = 0/' fly.toml | |
cat fly.toml | |
flyctl deploy --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_PLAINWEB_TEMPLATE_DEPLOY_TOKEN }} | |
- name: check fly deployment β¬οΈ | |
run: curl -s https://plainweb-template.fly.dev | grep -q "Let's go" |