Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 7 additions & 55 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,6 @@ on:
permissions: {}

jobs:
lint-and-check:
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: .node-version
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm build:all
- run: pnpm check

test:
runs-on: ${{ matrix.os }}
permissions:
Expand All @@ -44,57 +26,27 @@ jobs:
# Windows runs on main pushes and on PRs labeled "test: windows",
# unless a reusable workflow caller explicitly disables it.
os: '${{ (((github.event_name == ''push'' && startsWith(github.ref, ''refs/heads/'')) || contains(github.event.pull_request.labels.*.name, ''test: windows'')) && !(github.event_name == ''workflow_call'' && inputs.skip_windows)) && fromJSON(''["blacksmith-4vcpu-ubuntu-2404","windows-latest"]'') || fromJSON(''["blacksmith-4vcpu-ubuntu-2404"]'') }}'
suite: [unit, core-markdown, metaframeworks, pages-react-vue, pages-svelte-solid]
include:
- suite: unit
script: test:unit
- suite: core-markdown
script: test:integration
- suite: metaframeworks
script: test:metaframeworks
retry: 2
- suite: pages-react-vue
script: test:pages:react-vue
retry: 2
prebuild: playground/react-pages playground/vue-pages
- suite: pages-svelte-solid
script: test:pages:svelte-solid
retry: 2
prebuild: playground/svelte-pages playground/solid-pages
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: voidzero-dev/setup-vp@45e5c098f1095cc6b65fd92534603e7be70386c1 # v1
with:
node-version-file: .node-version
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build

- name: Pre-build playgrounds for preview tests
if: matrix.prebuild
shell: bash
run: |
for pg in ${{ matrix.prebuild }}; do
pnpm --dir "$pg" build &
done
wait
cache: true

- run: pnpm exec playwright install --with-deps chromium
if: matrix.suite != 'unit' && !contains(matrix.os, 'windows')
- run: vp exec playwright install --with-deps chromium
if: ${{ !contains(matrix.os, 'windows') }}

- run: pnpm exec playwright install chromium
if: matrix.suite != 'unit' && contains(matrix.os, 'windows')
- run: vp exec playwright install chromium
if: ${{ contains(matrix.os, 'windows') }}

- run: pnpm ${{ matrix.script }}${{ matrix.retry && format(' --retry {0}', matrix.retry) || '' }}
- run: vp run test:all

done:
runs-on: ubuntu-latest
if: always()
needs:
- lint-and-check
- test
steps:
- run: exit 1
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/deploy-docs-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: voidzero-dev/setup-vp@45e5c098f1095cc6b65fd92534603e7be70386c1 # v1
with:
node-version-file: .node-version
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build:core
- run: pnpm install
- run: pnpm deploy:staging:docs
cache: true
- run: vp run build:core
- run: vp install
- run: vp run deploy:staging:docs
env:
VOID_TOKEN: ${{ secrets.VOID_TOKEN }}
12 changes: 5 additions & 7 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: voidzero-dev/setup-vp@45e5c098f1095cc6b65fd92534603e7be70386c1 # v1
with:
node-version-file: .node-version
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build:core
- run: pnpm install
- run: pnpm deploy:docs
cache: true
- run: vp run build:core
- run: vp install
- run: vp run deploy:docs
env:
VOID_TOKEN: ${{ secrets.VOID_TOKEN }}
15 changes: 4 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,12 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 # zizmor: ignore[cache-poisoning]
with:
node-version-file: .node-version
- run: pnpm install --frozen-lockfile
- run: pnpm build

# Configure the publish registry after install so docs dependencies under
# @voidzero-dev continue to resolve from npm during installation.
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 # zizmor: ignore[cache-poisoning]
- uses: voidzero-dev/setup-vp@45e5c098f1095cc6b65fd92534603e7be70386c1 # v1
with:
node-version-file: .node-version
cache: true
registry-url: https://registry.npmjs.org
- run: vp run build

- run: npm install -g npm@latest
- run: pnpm publish -r --access public --tag latest --provenance --no-git-checks
- run: vp pm publish -r --access public --tag latest --provenance --no-git-checks
1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

23 changes: 0 additions & 23 deletions .oxfmtrc.json

This file was deleted.

Loading