Skip to content
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

ci: merge staging to master #49

Open
wants to merge 9 commits into
base: master
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
19 changes: 19 additions & 0 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "CI / Feature"

on:
push:
branches:
- feature*
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
use-library-js-feature:
permissions:
contents: read
actions: write
checks: write
uses: MatrixAI/.github/.github/workflows/library-js-feature.yml@master
144 changes: 0 additions & 144 deletions .github/workflows/merge.yml

This file was deleted.

137 changes: 0 additions & 137 deletions .github/workflows/release.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "CI / Staging"

on:
push:
branches:
- staging
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
use-library-js-staging:
permissions:
contents: write
actions: write
checks: write
pull-requests: write
uses: MatrixAI/.github/.github/workflows/library-js-staging.yml@master
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}

16 changes: 16 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "CI / Tag"

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:

jobs:
use-library-js-tag:
permissions:
contents: read
actions: write
uses: MatrixAI/.github/.github/workflows/library-js-tag.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type { Host } from '../../../src/types.js';
import type { Host } from '#types.js';
import * as net from 'net';
import path from 'node:path';
import url from 'node:url';
import b from 'benny';
import { suiteCommon, summaryName } from '../../utils.js';
import { suiteCommon } from './utils/utils.js';
import { promise } from '#utils.js';

const filePath = url.fileURLToPath(import.meta.url);
Expand Down Expand Up @@ -38,7 +39,7 @@ async function main() {

// Running benchmark
const summary = await b.suite(
summaryName(filePath),
path.basename(filePath, path.extname(filePath)),
b.add('send 1KiB of data over tcp', async () => {
const prom = promise();
client.write(data1KiB, () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import type { Host } from '../../../src/types.js';
import type { Host } from '#types.js';
import type { AddressInfo } from 'net';
import * as https from 'node:https';
import path from 'node:path';
import url from 'node:url';
import b from 'benny';
import * as ws from 'ws';
import { suiteCommon, summaryName } from '../../utils.js';
import * as testsUtils from '../../../tests/utils.js';
import { suiteCommon } from './utils/utils.js';
import * as testsUtils from '../tests/utils.js';
import { promise } from '#utils.js';

const filePath = url.fileURLToPath(import.meta.url);
Expand Down Expand Up @@ -42,7 +43,7 @@ async function main() {

// Running benchmark
const summary = await b.suite(
summaryName(filePath),
path.basename(filePath, path.extname(filePath)),
b.add('send 1KiB of data over ws', async () => {
const sendProm = promise();
client.send(data1KiB, { binary: true }, () => {
Expand Down
Loading
Loading