Skip to content

Commit ea987a7

Browse files
authored
Update deploy-docker.yml
1 parent f25247a commit ea987a7

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

.github/workflows/deploy-docker.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,41 @@ jobs:
3636
- name: Install dependencies
3737
run: pnpm install
3838

39+
lint:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v4
44+
- name: Install pnpm
45+
uses: pnpm/action-setup@v4
46+
with:
47+
version: 10
48+
- name: Set up Node.js
49+
uses: actions/setup-node@v4
50+
with:
51+
node-version: 22
52+
cache: 'pnpm'
53+
- name: Install dependencies
54+
run: pnpm run lint
55+
56+
test:
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Checkout repository
60+
uses: actions/checkout@v4
61+
- name: Install pnpm
62+
uses: pnpm/action-setup@v4
63+
with:
64+
version: 10
65+
- name: Set up Node.js
66+
uses: actions/setup-node@v4
67+
with:
68+
node-version: 22
69+
cache: 'pnpm'
70+
- name: Run tests
71+
run: pnpm run test
72+
73+
3974
build:
4075
runs-on: ubuntu-latest
4176
needs: [pnpm-install]
@@ -72,7 +107,7 @@ jobs:
72107

73108
build-and-deploy:
74109
runs-on: ubuntu-latest
75-
needs: [build]
110+
needs: [lint, test, build]
76111
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
77112
steps:
78113
- name: Checkout repository

0 commit comments

Comments
 (0)