Skip to content

Commit

Permalink
ci: ci cache test
Browse files Browse the repository at this point in the history
  • Loading branch information
lkzc19 committed Jul 25, 2024
1 parent aaccb3a commit 5ac5efe
Show file tree
Hide file tree
Showing 10 changed files with 9,236 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci-cache-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ci-cache-node

on:
workflow_dispatch:
push:
paths:
- 'v-poc/ci/cache-node/**'

env:
WORKSPACE: 'v-poc/ci/cache-node'

jobs:
drinkice-site-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Cache node_modules
uses: actions/cache@v4
with:
path: |
node_modules
key: ci-cache-node-${{ hashFiles('${{env.WORKSPACE}}/package-lock.json') }}
- name: NPM
run: |
cd ${{ env.WORKSPACE }}
npm install
npm run build
24 changes: 24 additions & 0 deletions v-poc/ci/cache-node/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log

# Misc
.DS_Store
.fleet
.idea

# Local env files
.env
.env.*
!.env.example
75 changes: 75 additions & 0 deletions v-poc/ci/cache-node/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Nuxt 3 Minimal Starter

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install
```

## Development Server

Start the development server on `http://localhost:3000`:

```bash
# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev
```

## Production

Build the application for production:

```bash
# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build
```

Locally preview production build:

```bash
# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
6 changes: 6 additions & 0 deletions v-poc/ci/cache-node/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<template>
<div>
<NuxtRouteAnnouncer />
<NuxtWelcome />
</div>
</template>
5 changes: 5 additions & 0 deletions v-poc/ci/cache-node/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true }
})
Loading

0 comments on commit 5ac5efe

Please sign in to comment.