Skip to content

Commit f9fbe80

Browse files
fix: CI
1 parent 4142c0e commit f9fbe80

1 file changed

Lines changed: 24 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,33 @@ permissions:
1717
jobs:
1818
build:
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 3
21+
22+
strategy:
23+
matrix:
24+
node-version: [18.x]
25+
2026
steps:
2127
- name: Checkout your repository using git
2228
uses: actions/checkout@v4
23-
- name: Install, build, and upload your site
24-
uses: withastro/action@v3
25-
# with:
26-
# path: . # The root location of your Astro project inside the repository. (optional)
27-
# node-version: 18 # The specific version of Node that should be used to build your site. Defaults to 18. (optional)
28-
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
29+
30+
- name: "🔧 Setup Node.js ${{ matrix.node-version }}"
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
cache: "npm"
35+
36+
- name: "📦 Install dependencies"
37+
run: npm ci
38+
39+
- name: "🔎 Lint code"
40+
run: npm run lint
41+
42+
- name: "📝 Checking code format"
43+
run: npm run format:check
44+
45+
- name: "🚀 Build the project"
46+
run: npm run build
2947

3048
deploy:
3149
needs: build

0 commit comments

Comments
 (0)