Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-and-restructure-templates
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala committed Jan 6, 2025
2 parents 3975c74 + 00a0a71 commit 338d578
Show file tree
Hide file tree
Showing 76 changed files with 9,668 additions and 6,664 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// https://code.visualstudio.com/docs/devcontainers/containers
// https://containers.dev/implementors/json_reference/
{
"image": "node:18",
"image": "node:22.12.0",
"features": {},
"customizations": {
"vscode": {
Expand Down
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintrc

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: autofix.ci # needed to securely identify the workflow
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:
push:
branches: [ "main" ]
branches: [main]

permissions:
contents: read
Expand All @@ -12,13 +12,13 @@ jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
cache: pnpm
- run: pnpm install
- name: Fix lint issues
run: pnpm run lint:fix
- uses: autofix-ci/action@ea32e3a12414e6d3183163c3424a7d7a8631ad84
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
21 changes: 15 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,37 @@ on:

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
# permissions:
# id-token: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
cache: pnpm
- run: pnpm install
- run: pnpm lint
- run: pnpm test:types
- run: pnpm build
- run: pnpm knip
- run: pnpm test:dist
# - run: pnpm vitest --coverage && rm -rf coverage/tmp
# - uses: codecov/codecov-action@v3
- name: Release Edge
- run: pnpm test:unit
- if: matrix.os != 'windows-latest'
uses: codecov/codecov-action@v5
- name: 📦 release pkg.pr.new
if: github.event_name != 'push' && matrix.os != 'windows-latest'
run: pnpx pkg-pr-new publish --compact --template './playground'
- name: 📦 release nuxi-nightly
if: |
github.event_name == 'push' &&
matrix.os != 'windows-latest' &&
!contains(github.event.head_commit.message, '[skip-release]') &&
!contains(github.event.head_commit.message, 'docs')
run: |
Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: size
on:
# this action will error unless run in a pr context
pull_request:
branches:
- main

env:
BUNDLE_SIZE: true

jobs:
# Build current and upload stats.json
# You may replace this with your own build method. All that
# is required is that the stats.json be an artifact
build-head:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- run: pnpm install
- run: pnpm build
- name: Upload stats.json
uses: actions/upload-artifact@v4
with:
name: head-stats
path: ./stats.json

# Build base for comparison and upload stats.json
# You may replace this with your own build method. All that
# is required is that the stats.json be an artifact
build-base:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.base_ref }}
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- run: pnpm install
- run: pnpm build
- name: Upload stats.json
uses: actions/upload-artifact@v4
with:
name: base-stats
path: ./stats.json

# run the action against the stats.json files
compare:
runs-on: ubuntu-latest
needs: [build-base, build-head]
permissions:
pull-requests: write
steps:
- uses: actions/download-artifact@v4
- uses: twk3/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
current-stats-json-path: ./head-stats/stats.json
base-stats-json-path: ./base-stats/stats.json
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ dist
.nuxt
nuxt-app
.pnpm-store
coverage
stats.json
Loading

0 comments on commit 338d578

Please sign in to comment.