Skip to content

Commit

Permalink
chore: release workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhulle committed Dec 13, 2023
1 parent b11b3fe commit f641cc6
Show file tree
Hide file tree
Showing 11 changed files with 223 additions and 263 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-countries-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kubb/swagger-zod": patch
---

remove log
37 changes: 37 additions & 0 deletions .github/setup/action.yml
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_
110 changes: 0 additions & 110 deletions .github/workflows/ci.yaml

This file was deleted.

27 changes: 3 additions & 24 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:

jobs:
build:
name: Build and Test
name: Build and test
timeout-minutes: 30
strategy:
fail-fast: true
Expand Down Expand Up @@ -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
Expand Down
85 changes: 0 additions & 85 deletions .github/workflows/pr.yaml

This file was deleted.

94 changes: 94 additions & 0 deletions .github/workflows/quality.yml
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
Loading

0 comments on commit f641cc6

Please sign in to comment.