-
Notifications
You must be signed in to change notification settings - Fork 42
38 lines (28 loc) · 828 Bytes
/
ci.yml
File metadata and controls
38 lines (28 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI Check
on:
pull_request:
push:
branches:
- master
jobs:
ci:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 📦 Setup Node + PNPM + install deps
uses: ./.github/actions/setup-node-pnpm-install
- name: "Astro Check"
run: pnpm run astro check
- name: "Run ESLint"
run: pnpm run lint:ci
- name: "Run Tests"
run: pnpm run test:ci
- name: "Generate Coverage Report"
# Set if: always() to also generate the report if tests are failing
# Only works if you set `reportOnFailure: true` in your vite config as specified above
if: always()
uses: davelosert/vitest-coverage-report-action@v2