Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 19 additions & 24 deletions .github/workflows/vuejs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,52 +12,47 @@ jobs:
steps:
- uses: actions/checkout@v6

- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: "25.x"
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: |
npm ci
bun install --frozen-lockfile

- name: Build
run: |
npm run build

- name: Cache node modules
uses: actions/cache@v4
with:
path: node_modules
key: "node-modules-${{ hashFiles('package-lock.json') }}"
bun run build

lint:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v6

- name: Restore node modules from cache
uses: actions/cache/restore@v4
with:
path: node_modules
key: "node-modules-${{ hashFiles('package-lock.json') }}"
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: |
bun install --frozen-lockfile

- name: Run Linter
run: |
npm run lint
bun run lint

test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v6

- name: Restore node modules from cache
uses: actions/cache/restore@v4
with:
path: node_modules
key: "node-modules-${{ hashFiles('package-lock.json') }}"
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: |
bun install --frozen-lockfile

- name: Run Tests
run: |
npm run test:unit
bun run test:unit
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,29 @@ See [Vite Configuration Reference](https://vitejs.dev/config/).
## Project Setup

```sh
npm install
bun install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
bun dev
```

### Type-Check, Compile and Minify for Production

```sh
npm run build
bun run build
```

### Run Unit Tests with [Vitest](https://vitest.dev/)

```sh
npm run test:unit
bun test:unit
```

### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint
bun lint
```
Loading