Skip to content

Commit 81e9054

Browse files
authored
feat: initial setup (#1)
1 parent a630d1f commit 81e9054

File tree

10 files changed

+999
-0
lines changed

10 files changed

+999
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
ci:
13+
timeout-minutes: 10
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v4
19+
20+
- run: corepack enable
21+
22+
- run: pnpm --version
23+
24+
- name: install
25+
run: pnpm install --frozen-lockfile --prefer-offline
26+
27+
- name: lint
28+
run: echo "TODO"

.github/workflows/ecosystem-ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# integration tests for webcontainer ecosystem projects - scheduled or manual run for all suites
2+
name: webcontainer-ecosystem-ci
3+
4+
env:
5+
# 7 GiB by default on GitHub, setting to 6 GiB
6+
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
7+
NODE_OPTIONS: --max-old-space-size=6144
8+
9+
on:
10+
schedule:
11+
- cron: "0 5 * * 1,3,5" # monday,wednesday,friday 5AM
12+
workflow_dispatch:
13+
inputs:
14+
version:
15+
description: "@webcontainer/api version to use"
16+
required: true
17+
type: string
18+
default: "latest"
19+
20+
jobs:
21+
test-ecosystem:
22+
timeout-minutes: 60
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
suite:
27+
- starters
28+
fail-fast: false
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: 20
35+
id: setup-node
36+
continue-on-error: true
37+
38+
- run: corepack enable
39+
40+
- run: pnpm --version
41+
42+
- run: pnpm i --frozen-lockfile
43+
44+
- run: >-
45+
pnpm tsx ecosystem-ci.ts
46+
--release ${{ inputs.version || github.event.client_payload.version }}
47+
${{ matrix.suite }}
48+
id: ecosystem-ci-run

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
workspace

package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "webcontainers-ecosystem-ci",
3+
"version": "0.0.1",
4+
"description": "WebContainers Ecosystem CI",
5+
"license": "MIT",
6+
"type": "module",
7+
"packageManager": "[email protected]",
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/stackblitz/webcontainers-ecosystem-ci.git"
11+
},
12+
"bugs": {
13+
"url": "https://github.com/stackblitz/webcontainers-ecosystem-ci/issues"
14+
},
15+
"homepage": "https://github.com/stackblitz/webcontainers-ecosystem-ci#readme",
16+
"scripts": {
17+
"tsx": "tsx",
18+
"test": "tsx src/index.ts"
19+
},
20+
"dependencies": {
21+
"@actions/core": "^1.11.1",
22+
"@antfu/ni": "^24.3.0",
23+
"cac": "^6.7.14",
24+
"tinyexec": "^1.0.1"
25+
},
26+
"devDependencies": {
27+
"@types/node": "^22.15.3",
28+
"tsx": "^4.19.3"
29+
}
30+
}

0 commit comments

Comments
 (0)