-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.17 KB
/
Copy pathopencode.yml
File metadata and controls
38 lines (38 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: OpenCode installer
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
host: [latest, baseline]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38
with:
node-version: '22.19.0'
- name: Configuration preservation
run: node --test test-opencode.mjs test-opencode-entry.mjs
- name: PowerShell entrypoint
shell: pwsh
run: ./test-opencode.ps1
- name: Windows PowerShell 5.1 entrypoint
if: runner.os == 'Windows'
shell: powershell
run: .\test-opencode.ps1
- name: Real install and native plugin loading without OAuth or inference
env:
TEST_OPENCODE_BASELINE: ${{ matrix.host == 'baseline' && 'true' || 'false' }}
run: node test-opencode-install.mjs