Skip to content

Commit

Permalink
adding more scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Jun 26, 2024
1 parent 24e24ea commit af78c74
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: vikejs
21 changes: 21 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// Inspired by https://github.com/vitejs/vite/blob/main/.github/renovate.json5
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: [
"config:base",
"schedule:weekly",
"group:allNonMajor",

// peerDependencies ranges should be left untouched/wide.
":disablePeerDependencies",
],
labels: ["dependencies"],
rangeStrategy: "bump",
assignees: ["@magne4000"],
ignoreDeps: [
// manually bumping
"node",
"@types/node",
"pnpm",
],
}
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI
on:
- push
- pull_request

jobs:
test:
name: Test ${{ matrix.example }} on ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
example:
- examples/hono-app
- examples/vike-app

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- run: pnpm install

- name: Build vike-solid
run: pnpm run build

- name: Test building example
run: pnpm run build
working-directory: ./${{ matrix.example }}

- name: Test TypeScript example
run: pnpm run test
working-directory: ./${{ matrix.example }}
12 changes: 12 additions & 0 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Check formatting"
on:
push:
jobs:
check_formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4

- run: pnpm install
- run: pnpm run lint
3 changes: 2 additions & 1 deletion examples/hono-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"dev": "vite",
"build": "vite build",
"preview": "wrangler pages dev",
"deploy": "wrangler pages deploy"
"deploy": "wrangler pages deploy",
"test": "tsc --noEmit"
},
"keywords": [],
"author": "Joël Charles <[email protected]>",
Expand Down
3 changes: 2 additions & 1 deletion examples/vike-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"dev": "vite",
"build": "vite build",
"preview": "wrangler pages dev",
"deploy": "wrangler pages deploy"
"deploy": "wrangler pages deploy",
"test": "tsc --noEmit"
},
"keywords": [],
"author": "Joël Charles <[email protected]>",
Expand Down
3 changes: 2 additions & 1 deletion packages/vike-cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"repository": "github:vikejs/vike-cloudflare"
}

0 comments on commit af78c74

Please sign in to comment.