Files
envsitter-guard/.github/workflows/e2e-latest.yml
T
David Ibia 2a53fe2d9c ci: add CI with OpenCode e2e, weekly latest-OpenCode e2e, release workflow, and Dependabot
- ci.yml: unit tests on Node 22, 24, 26 plus the end-to-end check against OpenCode 1.18.31 + 2.0.32 and 1.19.3 + 2.1.0
- e2e-latest.yml: weekly end-to-end run against the newest opencode-ai and @opencode/cli releases
- release.yml: tag vX.Y.Z reruns CI and publishes with npm trusted publishing
- Jobs run on GitHub only; the Gitea origin's runner skips them
- Dependabot proposes grouped npm and Actions updates weekly
2026-10-20 15:10:27 +01:00

34 lines
984 B
YAML

name: E2E (latest OpenCode)
on:
schedule:
- cron: "17 6 * * 1"
workflow_dispatch:
permissions:
contents: read
jobs:
e2e:
name: E2E (latest OpenCode 1 + 2)
# GitHub only: the Gitea origin also runs .github/workflows.
if: github.server_url == 'https://github.com'
runs-on: ubuntu-latest
env:
HUSKY: "0"
E2E_REQUIRE_ALL: "1"
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- run: npm ci
- name: Install the latest OpenCode 1 and OpenCode 2 side by side
run: |
npm install -g --prefix "$RUNNER_TEMP/opencode1" "opencode-ai@latest"
npm install -g --prefix "$RUNNER_TEMP/opencode2" "@opencode/cli@latest"
echo "OPENCODE_V1_BIN=$RUNNER_TEMP/opencode1/bin/opencode" >> "$GITHUB_ENV"
echo "OPENCODE_V2_BIN=$RUNNER_TEMP/opencode2/bin/opencode2" >> "$GITHUB_ENV"
- run: npm run test:e2e