generated from stijnvanhulle/template
-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b11b3fe
commit f641cc6
Showing
11 changed files
with
223 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@kubb/swagger-zod": patch | ||
--- | ||
|
||
remove log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: "Setup" | ||
description: "Sets up Node.js and runs install" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install bun | ||
uses: oven-sh/setup-bun@v1 | ||
continue-on-error: true | ||
|
||
- name: Setup Git User | ||
shell: bash | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Stijn Van Hulle" | ||
- name: Install dependencies | ||
shell: bash | ||
run: pnpm install --prefer-offline | ||
|
||
- name: Setup Turbo | ||
uses: dtinth/setup-github-actions-caching-for-turbo@v1 | ||
continue-on-error: true | ||
with: | ||
# Set the prefix for the cache keys. | ||
cache-prefix: kubb_ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ on: | |
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
name: Build and test | ||
timeout-minutes: 30 | ||
strategy: | ||
fail-fast: true | ||
|
@@ -77,29 +77,8 @@ jobs: | |
with: | ||
fetch-depth: 2 | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
|
||
- name: Setup Node.js(${{ matrix.node-version }}) environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install dependencies | ||
run: pnpm install --prefer-offline | ||
|
||
- name: Install bun | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- uses: dtinth/setup-github-actions-caching-for-turbo@v1 | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
with: | ||
# Set the prefix for the cache keys. | ||
cache-prefix: kubb_ | ||
- name: Setup | ||
uses: ./.github/setup | ||
|
||
- name: Build | ||
run: ${{ matrix.installer }} build | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Quality | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Setup | ||
uses: ./.github/setup | ||
|
||
- name: Build | ||
run: bun run build --concurrency=1 | ||
|
||
typecheck: | ||
name: Typecheck | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Setup | ||
uses: ./.github/setup | ||
|
||
- name: Typecheck | ||
run: bun run typecheck --concurrency=1 | ||
|
||
- name: Typecheck examples | ||
run: bun run typecheck:examples --concurrency=1 | ||
|
||
tests: | ||
name: Tests | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Setup | ||
uses: ./.github/setup | ||
|
||
- name: Build | ||
run: bun build | ||
|
||
- name: Test | ||
run: bun run test | ||
|
||
- name: Test with Bun | ||
continue-on-error: true | ||
run: bun run test:bun --coverage | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
linting: | ||
name: Linting | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Setup | ||
uses: ./.github/setup | ||
|
||
- name: Linting | ||
env: | ||
NODE_OPTIONS: "--max_old_space_size=4096" | ||
continue-on-error: true | ||
run: bun run lint:ci |
Oops, something went wrong.