mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
Delete upstream workflows
This fork does not ship upstream's releases, and its hosted-runner jobs never start here. Claude-Session: https://claude.ai/code/session_01HuMDfgFssPUptYUzgZ6Cp8
This commit is contained in:
@@ -1,112 +0,0 @@
|
||||
name: Build and Deploy pages to GitHub Pages
|
||||
on: [push, workflow_dispatch]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
list-branches:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
branches: ${{ steps.set-branches.outputs.branches }}
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get branch list and set output
|
||||
id: set-branches
|
||||
run: |
|
||||
BRANCHES=$(
|
||||
git branch -r |
|
||||
grep -Ev 'HEAD|v1|v2' |
|
||||
sed 's/^[ *]*//' |
|
||||
sed 's/^origin\///' |
|
||||
jq -R . |
|
||||
jq -cs
|
||||
)
|
||||
echo "branches=$BRANCHES" >> "$GITHUB_OUTPUT"
|
||||
|
||||
build-compat-pages:
|
||||
needs: list-branches
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
branch: ${{ fromJson(needs.list-branches.outputs.branches) }}
|
||||
name: Build for ${{ matrix.branch }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
ref: ${{ matrix.branch }}
|
||||
- name: Build cache key
|
||||
id: cache-key
|
||||
env:
|
||||
BRANCH: ${{ matrix.branch }}
|
||||
run: |
|
||||
HASH=$(git rev-parse --short HEAD)
|
||||
SAFE_BRANCH="${BRANCH//\//-}"
|
||||
echo "SAFE_BRANCH=$SAFE_BRANCH" >> "$GITHUB_ENV"
|
||||
echo "CACHE_KEY=$SAFE_BRANCH-$HASH" >> "$GITHUB_ENV"
|
||||
- name: Restore cached artifacts
|
||||
id: artifacts-restore
|
||||
uses: actions/cache/restore@v6
|
||||
with:
|
||||
path: ${{ env.SAFE_BRANCH }}
|
||||
key: ${{ env.CACHE_KEY }}
|
||||
- uses: actions/setup-node@v7
|
||||
if: steps.artifacts-restore.outputs.cache-hit != 'true'
|
||||
with:
|
||||
node-version: 26
|
||||
cache: npm
|
||||
- name: Build
|
||||
if: steps.artifacts-restore.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
npm run prepare-monorepo
|
||||
npm run build-compat
|
||||
npm run bundle
|
||||
- name: Prepare build artifacts
|
||||
if: steps.artifacts-restore.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
mkdir -p ${{ env.SAFE_BRANCH }}/compat
|
||||
cp tests/compat/index.html tests/compat/compat-data.js tests/compat/tests.js tests/compat/browsers-runner.js ${{ env.SAFE_BRANCH }}/compat
|
||||
mkdir -p ${{ env.SAFE_BRANCH }}/bundles
|
||||
cp tests/bundles/* ${{ env.SAFE_BRANCH }}/bundles
|
||||
mkdir -p ${{ env.SAFE_BRANCH }}/unit-browser
|
||||
cp tests/unit-browser/* ${{ env.SAFE_BRANCH }}/unit-browser
|
||||
- name: Save cached artifacts
|
||||
if: steps.artifacts-restore.outputs.cache-hit != 'true'
|
||||
uses: actions/cache/save@v6
|
||||
with:
|
||||
path: ${{ env.SAFE_BRANCH }}
|
||||
key: ${{ env.CACHE_KEY }}
|
||||
- name: Upload artifacts for branch ${{ matrix.branch }}
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: ${{ env.SAFE_BRANCH }}
|
||||
path: ${{ env.SAFE_BRANCH }}
|
||||
|
||||
combine-pages-and-deploy:
|
||||
needs: build-compat-pages
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
path: pages
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v6
|
||||
- name: Upload GitHub Pages artifact
|
||||
uses: actions/upload-pages-artifact@v5
|
||||
with:
|
||||
path: pages
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v5
|
||||
@@ -1,51 +0,0 @@
|
||||
name: Build bundles
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build-and-upload:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Extract branch name
|
||||
shell: bash
|
||||
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
|
||||
id: extract_branch
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v7
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v7
|
||||
with:
|
||||
node-version: 26
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm run prepare-monorepo
|
||||
|
||||
- name: Build bundle
|
||||
run: npm run bundle-package minified-name core-js-bundle
|
||||
|
||||
- name: Copy files to server over SSH
|
||||
uses: appleboy/scp-action@v1
|
||||
with:
|
||||
host: ${{ secrets.REMOTE_HOST }}
|
||||
username: ci
|
||||
key: ${{ secrets.CI_SSH_KEY }}
|
||||
source: "packages/core-js-bundle/core-js-bundle.js"
|
||||
target: "/var/www/core-js/bundles/${{ steps.extract_branch.outputs.branch }}/"
|
||||
strip_components: 2
|
||||
|
||||
- name: Build esmodules bundle
|
||||
run: npm run bundle-package esmodules minified-name core-js-bundle-esmodules
|
||||
|
||||
- name: Copy files to server over SSH
|
||||
uses: appleboy/scp-action@v1
|
||||
with:
|
||||
host: ${{ secrets.REMOTE_HOST }}
|
||||
username: ci
|
||||
key: ${{ secrets.CI_SSH_KEY }}
|
||||
source: "packages/core-js-bundle/core-js-bundle-esmodules.js"
|
||||
target: "/var/www/core-js/bundles/${{ steps.extract_branch.outputs.branch }}/"
|
||||
strip_components: 2
|
||||
@@ -1,62 +0,0 @@
|
||||
name: Build website for branch
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
run-on-server:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Extract branch name
|
||||
shell: bash
|
||||
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
|
||||
id: extract_branch
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
ref: ${{ steps.extract_branch.outputs.branch }}
|
||||
|
||||
- name: Copy runner file to remote server
|
||||
uses: garygrossgarten/[email protected]
|
||||
with:
|
||||
local: website/scripts/runner.mjs
|
||||
remote: /var/www/core-js/runner.mjs
|
||||
host: ${{ secrets.REMOTE_HOST }}
|
||||
username: ci
|
||||
privateKey: ${{ secrets.CI_SSH_KEY }}
|
||||
|
||||
- name: Copy runner wrapper file to remote server
|
||||
uses: garygrossgarten/[email protected]
|
||||
with:
|
||||
local: website/scripts/runner.sh
|
||||
remote: /var/www/core-js/runner.sh
|
||||
host: ${{ secrets.REMOTE_HOST }}
|
||||
username: ci
|
||||
privateKey: ${{ secrets.CI_SSH_KEY }}
|
||||
|
||||
- name: Copy runner helpers file to remote server
|
||||
uses: garygrossgarten/[email protected]
|
||||
with:
|
||||
local: website/scripts/helpers.mjs
|
||||
remote: /var/www/core-js/helpers.mjs
|
||||
host: ${{ secrets.REMOTE_HOST }}
|
||||
username: ci
|
||||
privateKey: ${{ secrets.CI_SSH_KEY }}
|
||||
|
||||
- name: Setup SSH
|
||||
uses: webfactory/[email protected]
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.CI_SSH_KEY }}
|
||||
|
||||
- name: Make runner.sh executable on remote
|
||||
run: |
|
||||
ssh -o StrictHostKeyChecking=no ci@${{ secrets.REMOTE_HOST }} "chmod +x /var/www/core-js/runner.sh"
|
||||
|
||||
- name: Run node runner.mjs on remote server
|
||||
run: |
|
||||
ssh -o StrictHostKeyChecking=no ci@${{ secrets.REMOTE_HOST }} "cd /var/www/core-js/ && ./runner.sh ${{ steps.extract_branch.outputs.branch }}"
|
||||
@@ -1,62 +0,0 @@
|
||||
name: Build website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
run-on-server:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Extract branch name
|
||||
shell: bash
|
||||
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
|
||||
id: extract_branch
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
ref: ${{ steps.extract_branch.outputs.branch }}
|
||||
|
||||
- name: Copy runner file to remote server
|
||||
uses: garygrossgarten/[email protected]
|
||||
with:
|
||||
local: website/scripts/runner.mjs
|
||||
remote: /var/www/core-js/runner.mjs
|
||||
host: ${{ secrets.REMOTE_HOST }}
|
||||
username: ci
|
||||
privateKey: ${{ secrets.CI_SSH_KEY }}
|
||||
|
||||
- name: Copy runner wrapper file to remote server
|
||||
uses: garygrossgarten/[email protected]
|
||||
with:
|
||||
local: website/scripts/runner.sh
|
||||
remote: /var/www/core-js/runner.sh
|
||||
host: ${{ secrets.REMOTE_HOST }}
|
||||
username: ci
|
||||
privateKey: ${{ secrets.CI_SSH_KEY }}
|
||||
|
||||
- name: Copy runner helpers file to remote server
|
||||
uses: garygrossgarten/[email protected]
|
||||
with:
|
||||
local: website/scripts/helpers.mjs
|
||||
remote: /var/www/core-js/helpers.mjs
|
||||
host: ${{ secrets.REMOTE_HOST }}
|
||||
username: ci
|
||||
privateKey: ${{ secrets.CI_SSH_KEY }}
|
||||
|
||||
- name: Setup SSH
|
||||
uses: webfactory/[email protected]
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.CI_SSH_KEY }}
|
||||
|
||||
- name: Make runner.sh executable on remote
|
||||
run: |
|
||||
ssh -o StrictHostKeyChecking=no ci@${{ secrets.REMOTE_HOST }} "chmod +x /var/www/core-js/runner.sh"
|
||||
|
||||
- name: Run node runner.mjs on remote server
|
||||
run: |
|
||||
ssh -o StrictHostKeyChecking=no ci@${{ secrets.REMOTE_HOST }} "cd /var/www/core-js/ && ./runner.sh"
|
||||
@@ -1,97 +0,0 @@
|
||||
name: ci
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-node@v7
|
||||
with:
|
||||
node-version: 26
|
||||
cache: npm
|
||||
- uses: actions/setup-python@v7
|
||||
with:
|
||||
python-version: 3.14
|
||||
- run: npm run prepare-monorepo
|
||||
- run: pip install codespell
|
||||
- run: npx run-s lint-raw codespell
|
||||
|
||||
karma:
|
||||
runs-on: windows-2022
|
||||
env:
|
||||
PLAYWRIGHT_BROWSERS_PATH: D:\ms-playwright
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-node@v7
|
||||
with:
|
||||
node-version: ^24.18
|
||||
cache: npm
|
||||
- uses: actions/cache@v6
|
||||
with:
|
||||
path: D:\ms-playwright
|
||||
key: playwright-windows-2022-${{ hashFiles('tests/unit-karma/package-lock.json') }}
|
||||
- run: npm run prepare-monorepo
|
||||
- run: npx run-s bundle test-unit-karma
|
||||
|
||||
bun:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-node@v7
|
||||
with:
|
||||
node-version: 26
|
||||
cache: npm
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
- run: npm run prepare-monorepo
|
||||
- run: npx run-s bundle test-unit-bun
|
||||
|
||||
promises-and-observables:
|
||||
strategy:
|
||||
matrix:
|
||||
node:
|
||||
- ^20.19
|
||||
- ^22.12
|
||||
- 23
|
||||
- 24
|
||||
- 25
|
||||
- 26
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
cache: npm
|
||||
- run: npm run prepare-monorepo
|
||||
- run: npx run-s test-promises test-observables
|
||||
|
||||
tests:
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
- macos-latest
|
||||
node:
|
||||
- ^20.19
|
||||
- ^22.12
|
||||
- 23
|
||||
- 24
|
||||
- 25
|
||||
- 26
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
cache: npm
|
||||
- run: npm run prepare-monorepo
|
||||
- run: npx run-s bundle test-unit-node test-entries test-compat-data test-compat-tools test-builder
|
||||
Reference in New Issue
Block a user