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
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
ci:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4

- run: corepack enable

- run: pnpm --version

- name: install
run: pnpm install --frozen-lockfile --prefer-offline

- name: lint
run: echo "TODO"
48 changes: 48 additions & 0 deletions .github/workflows/ecosystem-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# integration tests for webcontainer ecosystem projects - scheduled or manual run for all suites
name: webcontainer-ecosystem-ci

env:
# 7 GiB by default on GitHub, setting to 6 GiB
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
NODE_OPTIONS: --max-old-space-size=6144

on:
schedule:
- cron: "0 5 * * 1,3,5" # monday,wednesday,friday 5AM
workflow_dispatch:
inputs:
version:
description: "@webcontainer/api version to use"
required: true
type: string
default: "latest"

jobs:
test-ecosystem:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
suite:
- starters
fail-fast: false
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
id: setup-node
continue-on-error: true

- run: corepack enable

- run: pnpm --version

- run: pnpm i --frozen-lockfile

- run: >-
pnpm tsx ecosystem-ci.ts
--release ${{ inputs.version || github.event.client_payload.version }}
${{ matrix.suite }}
id: ecosystem-ci-run
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
workspace
30 changes: 30 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "webcontainers-ecosystem-ci",
"version": "0.0.1",
"description": "WebContainers Ecosystem CI",
"license": "MIT",
"type": "module",
"packageManager": "[email protected]",
"repository": {
"type": "git",
"url": "git+https://github.com/stackblitz/webcontainers-ecosystem-ci.git"
},
"bugs": {
"url": "https://github.com/stackblitz/webcontainers-ecosystem-ci/issues"
},
"homepage": "https://github.com/stackblitz/webcontainers-ecosystem-ci#readme",
"scripts": {
"tsx": "tsx",
"test": "tsx src/index.ts"
},
"dependencies": {
"@actions/core": "^1.11.1",
"@antfu/ni": "^24.3.0",
"cac": "^6.7.14",
"tinyexec": "^1.0.1"
},
"devDependencies": {
"@types/node": "^22.15.3",
"tsx": "^4.19.3"
}
}
Loading