Skip to content

feat(cli): void github — install + connect a repo for Deploy-on-GitHub #1045

feat(cli): void github — install + connect a repo for Deploy-on-GitHub

feat(cli): void github — install + connect a repo for Deploy-on-GitHub #1045

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened, labeled]
workflow_call:
inputs:
skip_windows:
type: boolean
required: false
default: false
permissions: {}
jobs:
test:
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
# 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"]'') }}'
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: voidzero-dev/setup-vp@56918a6d0c629c55ae8b88826a7d47fda85769ee # v1.9.0
with:
node-version-file: .node-version
cache: true
- run: vp exec playwright install --with-deps chromium
if: ${{ !contains(matrix.os, 'windows') }}
- run: vp exec playwright install chromium
if: ${{ contains(matrix.os, 'windows') }}
- run: vp run test:all
done:
runs-on: ubuntu-latest
if: always()
needs:
- test
steps:
- run: exit 1
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
deploy-docs:
runs-on: blacksmith-4vcpu-ubuntu-2404
needs:
- done
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
environment:
name: Docs
url: https://void.cloud
permissions:
contents: read
concurrency:
group: deploy-void-cloud
cancel-in-progress: true
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: voidzero-dev/setup-vp@56918a6d0c629c55ae8b88826a7d47fda85769ee # v1.9.0
with:
node-version-file: .node-version
cache: true
- run: vp install
- run: vp run deploy:docs
env:
VOID_TOKEN: ${{ secrets.VOID_TOKEN }}