Skip to content

tests, scripts: cleanup tests and dev environment things #252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
31 changes: 3 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
- main

jobs:
unit-tests:
name: Unit Tests
tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'synchronize' || (github.event.action == 'labeled' && github.event.label.name == 'force ci') }}
Expand All @@ -35,29 +35,4 @@ jobs:
run: npm install

- name: Run Tests
run: node --run test:unit
e2e-test:
name: E2E Tests
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'synchronize' || (github.event.action == 'labeled' && github.event.label.name == 'force ci') }}

steps:
- uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
with:
egress-policy: audit

- name: Git Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Run Tests
run: node --run test:e2e
run: node --run test -- --run
6 changes: 6 additions & 0 deletions dev-bucket/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# dev-bucket

This is a very slimmed down recreation of the `dist-prod` bucket meant for testing the Release Worker.
The files here have little to no content, they're here just to build the structure of the bucket itself so that the Release Worker can be used in development easier.

For more information on the structure of the bucket, read [R2](../docs/r2.md) and [Release Process](../docs/release-process.md).
9 changes: 9 additions & 0 deletions dev-bucket/metrics/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<p>metrics/index.html</p>
</body>
</html>
Empty file.
1 change: 1 addition & 0 deletions dev-bucket/nodejs/chakracore-nightly/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<p>nodejs/chakracore-nightly/v10.13.0-nightly2018112084bd6f3c82/docs/api/index.html</p>
</body>
</html>
1 change: 1 addition & 0 deletions dev-bucket/nodejs/chakracore-rc/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions dev-bucket/nodejs/chakracore-release/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<p>nodejs/chakracore-release/v10.0.0/docs/api/index.html</p>
</body>
</html>
Empty file.
Empty file.
Empty file.
9 changes: 9 additions & 0 deletions dev-bucket/nodejs/docs/v0.0.1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<p>nodejs/docs/v0.0.1/index.html</p>
</body>
</html>
1 change: 1 addition & 0 deletions dev-bucket/nodejs/nightly/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<p>nodejs/nightly/v24.0.0-nightly20241219756077867b/docs/api/index.html</p>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions dev-bucket/nodejs/rc/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Empty file.
9 changes: 9 additions & 0 deletions dev-bucket/nodejs/rc/v23.0.0-rc.3/docs/api/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<p>nodejs/rc/v23.0.0-rc.3/docs/api/index.html</p>
</body>
</html>
1 change: 1 addition & 0 deletions dev-bucket/nodejs/rc/v23.0.0-rc.3/docs/apilinks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Empty file.
Empty file.
1 change: 1 addition & 0 deletions dev-bucket/nodejs/release/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "hello": true }
Empty file.
9 changes: 9 additions & 0 deletions dev-bucket/nodejs/release/v20.0.0/docs/api/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<p>nodejs/release/v20.0.0/docs/api/index.html</p>
</body>
</html>
1 change: 1 addition & 0 deletions dev-bucket/nodejs/release/v20.0.0/docs/apilinks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions dev-bucket/nodejs/test/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions dev-bucket/nodejs/v8-canary/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<p>nodejs/v8-canary/v24.0.0-v8-canary202412221f947c1730/docs/api/index.html</p>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading
Loading