ci(gitea): move validation workflow
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '23 4 * * 1'
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
- name: Install current Codex CLI for schema validation
|
||||
run: npm install --global @openai/codex@latest
|
||||
- name: Bash syntax
|
||||
run: find scripts shared/hooks -name '*.sh' -print0 | xargs -0 -n1 bash -n
|
||||
- name: Build
|
||||
run: REQUIRE_CODEX_SCHEMA=true ./scripts/build.sh
|
||||
- name: Doctor
|
||||
run: ./scripts/doctor.sh
|
||||
- name: Platform package tests
|
||||
run: ./scripts/test-platform-packages.sh
|
||||
- name: Managed manifest tests
|
||||
run: ./scripts/test-managed-install.sh
|
||||
- name: Build validation tests
|
||||
run: ./scripts/test-build-validation.sh
|
||||
- name: Install dry run
|
||||
run: |
|
||||
export HOME="$RUNNER_TEMP/isolated-home"
|
||||
mkdir -p "$HOME"
|
||||
./scripts/install.sh --dry-run --client both --platform linux
|
||||
|
||||
windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
- name: Install current Codex CLI for schema validation
|
||||
shell: powershell
|
||||
run: npm install --global @openai/codex@latest
|
||||
- name: PowerShell syntax
|
||||
shell: powershell
|
||||
run: |
|
||||
$errors = @()
|
||||
Get-ChildItem scripts,shared/hooks -Recurse -Filter *.ps1 | ForEach-Object {
|
||||
$tokens = $null
|
||||
$parseErrors = $null
|
||||
[void][System.Management.Automation.Language.Parser]::ParseFile($_.FullName, [ref]$tokens, [ref]$parseErrors)
|
||||
$errors += $parseErrors
|
||||
}
|
||||
if ($errors.Count) { $errors | ForEach-Object { Write-Error $_ }; exit 1 }
|
||||
- name: Build
|
||||
shell: powershell
|
||||
run: $env:REQUIRE_CODEX_SCHEMA = 'true'; .\scripts\build.ps1
|
||||
- name: Doctor
|
||||
shell: powershell
|
||||
run: .\scripts\doctor.ps1
|
||||
- name: Platform package tests
|
||||
shell: powershell
|
||||
run: .\scripts\test-platform-packages.ps1
|
||||
- name: Managed manifest tests
|
||||
shell: powershell
|
||||
run: .\scripts\test-managed-install.ps1
|
||||
- name: Build validation tests
|
||||
shell: powershell
|
||||
run: .\scripts\test-build-validation.ps1
|
||||
- name: Install dry run
|
||||
shell: powershell
|
||||
run: .\scripts\install.ps1 -DryRun -Client Both -Platform Windows
|
||||
Reference in New Issue
Block a user