From af78c74d2a5b00d040f02d9707b971dda9571f08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Charles?= Date: Wed, 26 Jun 2024 16:36:47 +0200 Subject: [PATCH] adding more scripts --- .github/FUNDING.yml | 1 + .github/renovate.json5 | 21 ++++++++++++++++++ .github/workflows/build.yml | 32 +++++++++++++++++++++++++++ .github/workflows/formatting.yml | 12 ++++++++++ examples/hono-app/package.json | 3 ++- examples/vike-app/package.json | 3 ++- packages/vike-cloudflare/package.json | 3 ++- 7 files changed, 72 insertions(+), 3 deletions(-) create mode 100644 .github/FUNDING.yml create mode 100644 .github/renovate.json5 create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/formatting.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..bc1c13a --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: vikejs diff --git a/.github/renovate.json5 b/.github/renovate.json5 new file mode 100644 index 0000000..97e3f88 --- /dev/null +++ b/.github/renovate.json5 @@ -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", + ], +} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a73a68f --- /dev/null +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml new file mode 100644 index 0000000..a338500 --- /dev/null +++ b/.github/workflows/formatting.yml @@ -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 diff --git a/examples/hono-app/package.json b/examples/hono-app/package.json index d709ed6..c49ed6a 100644 --- a/examples/hono-app/package.json +++ b/examples/hono-app/package.json @@ -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 ", diff --git a/examples/vike-app/package.json b/examples/vike-app/package.json index 2e90239..437d68b 100644 --- a/examples/vike-app/package.json +++ b/examples/vike-app/package.json @@ -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 ", diff --git a/packages/vike-cloudflare/package.json b/packages/vike-cloudflare/package.json index d71e067..c4d0477 100644 --- a/packages/vike-cloudflare/package.json +++ b/packages/vike-cloudflare/package.json @@ -38,5 +38,6 @@ "types": "./dist/index.d.ts", "default": "./dist/index.js" } - } + }, + "repository": "github:vikejs/vike-cloudflare" }