gitea action ...
This commit is contained in:
17
.github/workflows/deploy.yml
vendored
17
.github/workflows/deploy.yml
vendored
@@ -7,14 +7,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# setup Node et pnpm
|
# setup Node
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: "pnpm"
|
|
||||||
- uses: pnpm/action-setup@v4
|
|
||||||
|
|
||||||
# install et build
|
# installer pnpm globalement
|
||||||
|
- run: npm install -g pnpm
|
||||||
|
|
||||||
|
# install deps et build
|
||||||
- run: pnpm install --frozen-lockfile
|
- run: pnpm install --frozen-lockfile
|
||||||
- run: pnpm build
|
- run: pnpm build
|
||||||
|
|
||||||
@@ -27,11 +28,13 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: "pnpm"
|
|
||||||
- uses: pnpm/action-setup@v4
|
|
||||||
|
|
||||||
# install seulement les prod deps, start server
|
- run: npm install -g pnpm
|
||||||
|
|
||||||
|
# install uniquement les prod deps
|
||||||
- run: pnpm install --frozen-lockfile --prod
|
- run: pnpm install --frozen-lockfile --prod
|
||||||
|
|
||||||
|
# démarrer le serveur et tester une route
|
||||||
- run: pnpm start &
|
- run: pnpm start &
|
||||||
- run: npx wait-on http://localhost:3000
|
- run: npx wait-on http://localhost:3000
|
||||||
- run: curl -f http://localhost:3000 || exit 1
|
- run: curl -f http://localhost:3000 || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user