mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
ci: seperate test (#2785)
* ci: seperate test * ci: fix site * chore(site): remove blog
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
name: Bot Pkg Test Status
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
bot-pkg-test-status:
|
||||
name: Bot Pkg Test Status
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -0,0 +1,147 @@
|
||||
name: Bot Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build-type-and-test:
|
||||
name: Build Type and Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Build Type and Test
|
||||
run: yarn build:type --cache-dir=".turbo" --filter=./packages/bot
|
||||
|
||||
build-dist:
|
||||
name: Build Dist
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build-${{ github.sha }}
|
||||
- name: Type Test
|
||||
run: yarn build --cache-dir=".turbo" --filter=./packages/bot
|
||||
|
||||
format-unit-and-integration-test:
|
||||
name: Format Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-type-and-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-lint-${{ github.sha }}
|
||||
- name: Build type cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Check Formatting
|
||||
run: yarn lint --cache-dir=".turbo" --filter=./packages/bot
|
||||
|
||||
test-type-unit-and-integration-test:
|
||||
name: Test Type Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-type-and-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-unit-and-integration-test:test-type-${{ github.sha }}
|
||||
- name: Build type cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Test Type Test
|
||||
run: yarn test:test-type --cache-dir=".turbo" --filter=./packages/bot
|
||||
|
||||
# Not using matrix because test later on cant needs a specific job
|
||||
bot-unit-test:
|
||||
needs: build-dist
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
with:
|
||||
package: bot
|
||||
bot-e2e-test:
|
||||
needs: bot-unit-test
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
uses: ./.github/workflows/e2e-test.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
package: bot
|
||||
bot-other-runtime-test:
|
||||
needs: bot-unit-test
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
with:
|
||||
package: bot
|
||||
@@ -1,11 +0,0 @@
|
||||
name: Client Pkg Test Status
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
client-pkg-test-status:
|
||||
name: Client Pkg Test Status
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -0,0 +1,142 @@
|
||||
name: Client Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build-type-and-test:
|
||||
name: Build Type and Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Build Type and Test
|
||||
run: yarn build:type --cache-dir=".turbo" --filter=./packages/client
|
||||
|
||||
build-dist:
|
||||
name: Build Dist
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build-${{ github.sha }}
|
||||
- name: Type Test
|
||||
run: yarn build --cache-dir=".turbo" --filter=./packages/client
|
||||
|
||||
format-unit-and-integration-test:
|
||||
name: Format Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-type-and-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-lint-${{ github.sha }}
|
||||
- name: Build type cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Check Formatting
|
||||
run: yarn lint --cache-dir=".turbo" --filter=./packages/client
|
||||
|
||||
test-type-unit-and-integration-test:
|
||||
name: Test Type Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-type-and-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-unit-and-integration-test:test-type-${{ github.sha }}
|
||||
- name: Build type cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Test Type Test
|
||||
run: yarn test:test-type --cache-dir=".turbo" --filter=./packages/client
|
||||
|
||||
# Not using matrix because test later on cant needs a specific job
|
||||
client-unit-test:
|
||||
name: Client
|
||||
needs: build-dist
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
with:
|
||||
package: client
|
||||
client-other-runtime-test:
|
||||
name: Client
|
||||
needs: client-unit-test
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
with:
|
||||
package: client
|
||||
@@ -1,11 +0,0 @@
|
||||
name: Discordeno Pkg Test Status
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
discordeno-pkg-test-status:
|
||||
name: Discordeno Pkg Test Status
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -0,0 +1,142 @@
|
||||
name: Discordeno Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build-type-and-test:
|
||||
name: Build Type and Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Build Type and Test
|
||||
run: yarn build:type --cache-dir=".turbo" --filter=./packages/discordeno
|
||||
|
||||
build-dist:
|
||||
name: Build Dist
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build-${{ github.sha }}
|
||||
- name: Type Test
|
||||
run: yarn build --cache-dir=".turbo" --filter=./packages/discordeno
|
||||
|
||||
format-unit-and-integration-test:
|
||||
name: Format Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-type-and-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-lint-${{ github.sha }}
|
||||
- name: Build type cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Check Formatting
|
||||
run: yarn lint --cache-dir=".turbo" --filter=./packages/discordeno
|
||||
|
||||
test-type-unit-and-integration-test:
|
||||
name: Test Type Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-type-and-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-unit-and-integration-test:test-type-${{ github.sha }}
|
||||
- name: Build type cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Test Type Test
|
||||
run: yarn test:test-type --cache-dir=".turbo" --filter=./packages/discordeno
|
||||
|
||||
# Not using matrix because test later on cant needs a specific job
|
||||
discordeno-unit-test:
|
||||
name: Discordeno
|
||||
needs: build-dist
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
with:
|
||||
package: discordeno
|
||||
discordeno-other-runtime-test:
|
||||
name: Discordeno
|
||||
needs: discordeno-unit-test
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
with:
|
||||
package: discordeno
|
||||
@@ -1,11 +0,0 @@
|
||||
name: Gateway Pkg Test Status
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
gateway-pkg-test-status:
|
||||
name: Gateway Pkg Test Status
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Test
|
||||
name: Gateway Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Build Type and Test
|
||||
run: yarn build:type --cache-dir=".turbo"
|
||||
run: yarn build:type --cache-dir=".turbo" --filter=./packages/gateway
|
||||
|
||||
build-dist:
|
||||
name: Build Dist
|
||||
@@ -57,7 +57,7 @@ jobs:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build-${{ github.sha }}
|
||||
- name: Type Test
|
||||
run: yarn build --cache-dir=".turbo"
|
||||
run: yarn build --cache-dir=".turbo" --filter=./packages/gateway
|
||||
|
||||
format-unit-and-integration-test:
|
||||
name: Format Test
|
||||
@@ -91,7 +91,7 @@ jobs:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Check Formatting
|
||||
run: yarn lint --cache-dir=".turbo"
|
||||
run: yarn lint --cache-dir=".turbo" --filter=./packages/gateway
|
||||
|
||||
test-type-unit-and-integration-test:
|
||||
name: Test Type Test
|
||||
@@ -125,41 +125,9 @@ jobs:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Test Type Test
|
||||
run: yarn test:test-type --cache-dir=".turbo"
|
||||
run: yarn test:test-type --cache-dir=".turbo" --filter=./packages/gateway
|
||||
|
||||
# Not using matrix because test later on cant needs a specific job
|
||||
client-unit-test:
|
||||
name: Client
|
||||
needs: build-dist
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
with:
|
||||
package: client
|
||||
client-other-runtime-test:
|
||||
name: Client
|
||||
needs: client-unit-test
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
with:
|
||||
package: client
|
||||
client-test-status:
|
||||
name: Client
|
||||
needs: [client-other-runtime-test]
|
||||
uses: ./.github/workflows/client-pkg-test-status.yml
|
||||
discordeno-unit-test:
|
||||
name: Discordeno
|
||||
needs: build-dist
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
with:
|
||||
package: discordeno
|
||||
discordeno-other-runtime-test:
|
||||
name: Discordeno
|
||||
needs: discordeno-unit-test
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
with:
|
||||
package: discordeno
|
||||
discordeno-test-status:
|
||||
name: Discordeno
|
||||
needs: [discordeno-other-runtime-test]
|
||||
uses: ./.github/workflows/discordeno-pkg-test-status.yml
|
||||
gateway-unit-test:
|
||||
name: Gateway
|
||||
needs: build-dist
|
||||
@@ -178,71 +146,3 @@ jobs:
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
with:
|
||||
package: gateway
|
||||
gateway-test-status:
|
||||
name: Gateway
|
||||
needs: [gateway-other-runtime-test]
|
||||
uses: ./.github/workflows/gateway-pkg-test-status.yml
|
||||
rest-unit-test:
|
||||
name: Rest
|
||||
needs: build-dist
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
with:
|
||||
package: rest
|
||||
rest-e2e-test:
|
||||
name: Rest
|
||||
needs: rest-unit-test
|
||||
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/node-migration' || github.ref == 'refs/heads/node-migration-clean' }}
|
||||
uses: ./.github/workflows/e2e-test.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
package: rest
|
||||
rest-other-runtime-test:
|
||||
name: Rest
|
||||
needs: rest-unit-test
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
with:
|
||||
package: rest
|
||||
rest-test-status:
|
||||
name: Rest
|
||||
needs: [rest-e2e-test, rest-other-runtime-test]
|
||||
uses: ./.github/workflows/rest-pkg-test-status.yml
|
||||
utils-unit-test:
|
||||
name: Utils
|
||||
needs: build-dist
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
with:
|
||||
package: utils
|
||||
utils-other-runtime-test:
|
||||
name: Utils
|
||||
needs: utils-unit-test
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
with:
|
||||
package: utils
|
||||
utils-test-status:
|
||||
name: Utils
|
||||
needs: [utils-other-runtime-test]
|
||||
uses: ./.github/workflows/utils-pkg-test-status.yml
|
||||
bot-unit-test:
|
||||
name: Bot
|
||||
needs: build-dist
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
with:
|
||||
package: bot
|
||||
bot-e2e-test:
|
||||
name: Bot
|
||||
needs: bot-unit-test
|
||||
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/node-migration' || github.ref == 'refs/heads/node-migration-clean' }}
|
||||
uses: ./.github/workflows/e2e-test.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
package: bot
|
||||
bot-other-runtime-test:
|
||||
name: Bot
|
||||
needs: bot-unit-test
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
with:
|
||||
package: bot
|
||||
bot-test-status:
|
||||
name: Bot
|
||||
needs: [bot-e2e-test, bot-other-runtime-test]
|
||||
uses: ./.github/workflows/bot-pkg-test-status.yml
|
||||
@@ -0,0 +1,147 @@
|
||||
name: Rest Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build-type-and-test:
|
||||
name: Build Type and Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Build Type and Test
|
||||
run: yarn build:type --cache-dir=".turbo" --filter=./packages/rest
|
||||
|
||||
build-dist:
|
||||
name: Build Dist
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build-${{ github.sha }}
|
||||
- name: Type Test
|
||||
run: yarn build --cache-dir=".turbo" --filter=./packages/rest
|
||||
|
||||
format-unit-and-integration-test:
|
||||
name: Format Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-type-and-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-lint-${{ github.sha }}
|
||||
- name: Build type cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Check Formatting
|
||||
run: yarn lint --cache-dir=".turbo" --filter=./packages/rest
|
||||
|
||||
test-type-unit-and-integration-test:
|
||||
name: Test Type Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-type-and-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-unit-and-integration-test:test-type-${{ github.sha }}
|
||||
- name: Build type cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Test Type Test
|
||||
run: yarn test:test-type --cache-dir=".turbo" --filter=./packages/rest
|
||||
|
||||
# Not using matrix because test later on cant needs a specific job
|
||||
rest-unit-test:
|
||||
needs: build-dist
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
with:
|
||||
package: rest
|
||||
rest-e2e-test:
|
||||
needs: rest-unit-test
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
uses: ./.github/workflows/e2e-test.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
package: rest
|
||||
rest-other-runtime-test:
|
||||
needs: rest-unit-test
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
with:
|
||||
package: rest
|
||||
@@ -39,10 +39,19 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-site-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-site-
|
||||
- name: Build website
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
yarn
|
||||
yarn build
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
name: Types Pkg Test Status
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
types-pkg-test-status:
|
||||
name: Types Pkg Test Status
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -0,0 +1,142 @@
|
||||
name: Types Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build-type-and-test:
|
||||
name: Build Type and Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Build Type and Test
|
||||
run: yarn build:type --cache-dir=".turbo" --filter=./packages/types
|
||||
|
||||
build-dist:
|
||||
name: Build Dist
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build-${{ github.sha }}
|
||||
- name: Type Test
|
||||
run: yarn build --cache-dir=".turbo" --filter=./packages/types
|
||||
|
||||
format-unit-and-integration-test:
|
||||
name: Format Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-type-and-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-lint-${{ github.sha }}
|
||||
- name: Build type cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Check Formatting
|
||||
run: yarn lint --cache-dir=".turbo" --filter=./packages/types
|
||||
|
||||
test-type-unit-and-integration-test:
|
||||
name: Test Type Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-type-and-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-unit-and-integration-test:test-type-${{ github.sha }}
|
||||
- name: Build type cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Test Type Test
|
||||
run: yarn test:test-type --cache-dir=".turbo" --filter=./packages/types
|
||||
|
||||
# Not using matrix because test later on cant needs a specific job
|
||||
types-unit-test:
|
||||
name: Types
|
||||
needs: build-dist
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
with:
|
||||
package: types
|
||||
types-other-runtime-test:
|
||||
name: Types
|
||||
needs: types-unit-test
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
with:
|
||||
package: types
|
||||
@@ -1,11 +0,0 @@
|
||||
name: Utils Pkg Test Status
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
utils-pkg-test-status:
|
||||
name: Utils Pkg Test Status
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -0,0 +1,142 @@
|
||||
name: Utils Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build-type-and-test:
|
||||
name: Build Type and Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Build Type and Test
|
||||
run: yarn build:type --cache-dir=".turbo" --filter=./packages/utils
|
||||
|
||||
build-dist:
|
||||
name: Build Dist
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build-${{ github.sha }}
|
||||
- name: Type Test
|
||||
run: yarn build --cache-dir=".turbo" --filter=./packages/utils
|
||||
|
||||
format-unit-and-integration-test:
|
||||
name: Format Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-type-and-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-lint-${{ github.sha }}
|
||||
- name: Build type cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Check Formatting
|
||||
run: yarn lint --cache-dir=".turbo" --filter=./packages/utils
|
||||
|
||||
test-type-unit-and-integration-test:
|
||||
name: Test Type Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-type-and-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn install --immutable
|
||||
- name: Turbo Cache
|
||||
id: turbo-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-unit-and-integration-test:test-type-${{ github.sha }}
|
||||
- name: Build type cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build:type-${{ github.sha }}
|
||||
- name: Test Type Test
|
||||
run: yarn test:test-type --cache-dir=".turbo" --filter=./packages/utils
|
||||
|
||||
# Not using matrix because test later on cant needs a specific job
|
||||
utils-unit-test:
|
||||
name: Utils
|
||||
needs: build-dist
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
with:
|
||||
package: utils
|
||||
utils-other-runtime-test:
|
||||
name: Utils
|
||||
needs: utils-unit-test
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
with:
|
||||
package: utils
|
||||
Vendored
+4
-1
@@ -8,5 +8,8 @@
|
||||
"[typescript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"typescript.tsdk": "node_modules\\typescript\\lib"
|
||||
"typescript.tsdk": "node_modules\\typescript\\lib",
|
||||
"yaml.schemas": {
|
||||
"https://json.schemastore.org/github-workflow.json": "file:///c%3A/Users/Heihe/Downloads/discordeno/discordeno/.github/workflows/site.yml"
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,6 @@ Discord API library for [Node.JS](https://nodejs.org), [Deno](https://deno.land)
|
||||
[](https://discord.com/invite/5vBgXk3UcZ)
|
||||

|
||||
|
||||
|
||||
## Tips
|
||||
|
||||
- If you are already convinced about using Discordeno, go to [Getting Started](https://discordeno.mod.land)
|
||||
@@ -16,13 +15,13 @@ Discord API library for [Node.JS](https://nodejs.org), [Deno](https://deno.land)
|
||||
## Packages
|
||||
|
||||
| Package | npm | Tests | Coverage |
|
||||
| ------------------------------------------------------------------------ | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [discordeno](https://www.npmjs.com/package/discordeno) |  |  | [](https://codecov.io/gh/discordeno/discordeno) |
|
||||
| [@discordeno/types](https://www.npmjs.com/package/@discordeno/types) |  |  | [](https://codecov.io/gh/discordeno/discordeno) |
|
||||
| [@discordeno/utils](https://www.npmjs.com/package/@discordeno/utils) |  |  | [](https://codecov.io/gh/discordeno/discordeno) |
|
||||
| [@discordeno/rest](https://www.npmjs.com/package/@discordeno/rest) |  |  | [](https://codecov.io/gh/discordeno/discordeno) |
|
||||
| [@discordeno/gateway](https://www.npmjs.com/package/@discordeno/gateway) |  |  | [](https://codecov.io/gh/discordeno/discordeno) |
|
||||
| [@discordeno/bot](https://www.npmjs.com/package/@discordeno/bot) |  |  | [](https://codecov.io/gh/discordeno/discordeno) |
|
||||
| ------------------------------------------------------------------------ | ----------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [discordeno](https://www.npmjs.com/package/discordeno) |  |  | [](https://codecov.io/gh/discordeno/discordeno) |
|
||||
| [@discordeno/types](https://www.npmjs.com/package/@discordeno/types) |  |  | [](https://codecov.io/gh/discordeno/discordeno) |
|
||||
| [@discordeno/utils](https://www.npmjs.com/package/@discordeno/utils) |  |  | [](https://codecov.io/gh/discordeno/discordeno) |
|
||||
| [@discordeno/rest](https://www.npmjs.com/package/@discordeno/rest) |  |  | [](https://codecov.io/gh/discordeno/discordeno) |
|
||||
| [@discordeno/gateway](https://www.npmjs.com/package/@discordeno/gateway) |  |  | [](https://codecov.io/gh/discordeno/discordeno) |
|
||||
| [@discordeno/bot](https://www.npmjs.com/package/@discordeno/bot) |  |  | [](https://codecov.io/gh/discordeno/discordeno) |
|
||||
|
||||
## Features
|
||||
|
||||
|
||||
@@ -32,6 +32,11 @@ flags:
|
||||
rest-e2e:
|
||||
carryforward: true
|
||||
|
||||
types:
|
||||
carryforward: false
|
||||
types-unit:
|
||||
carryforward: false
|
||||
|
||||
utils:
|
||||
carryforward: false
|
||||
utils-unit:
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"all": true,
|
||||
"src": "src",
|
||||
"reporter": ["text", "lcov"],
|
||||
"include": ["src/**/*.ts"],
|
||||
"exclude": ["tests"]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"require": "ts-node/register",
|
||||
"loader": "ts-node/esm",
|
||||
"recursive": true,
|
||||
"timeout": 2000,
|
||||
"watch-extensions": "ts",
|
||||
"watch-files": ["src", "tests"],
|
||||
"enable-source-maps": true,
|
||||
"parallel": false
|
||||
}
|
||||
@@ -15,14 +15,25 @@
|
||||
"release-build": "yarn build && yarn build:type",
|
||||
"fmt": "eslint --fix \"src/**/*.ts*\"",
|
||||
"lint": "eslint \"src/**/*.ts*\"",
|
||||
"test:unit-coverage": "c8 mocha --no-warnings 'tests/**/*.spec.ts'",
|
||||
"test:unit": "c8 --r lcov mocha --no-warnings 'tests/**/*.spec.ts' && node ../../scripts/coveragePathFixing.js utils",
|
||||
"test:deno-unit": "swc tests --delete-dir-on-start -C jsc.minify.mangle=false --out-dir denoTestsDist && node ../../scripts/fixDenoTestExtension.js && deno test -A --import-map ../../denoImportMap.json denoTestsDist",
|
||||
"test:unit:watch": "mocha --no-warnings --watch --parallel 'tests/**/*.spec.ts'",
|
||||
"test:type": "tsc --noEmit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@swc/cli": "^0.1.57",
|
||||
"@swc/core": "^1.3.21",
|
||||
"@types/node": "^18.11.9",
|
||||
"@types/chai": "^4",
|
||||
"@types/mocha": "^10",
|
||||
"@types/node": "^18.11.15",
|
||||
"@types/sinon": "^10.0.13",
|
||||
"c8": "^7.12.0",
|
||||
"chai": "^4.3.7",
|
||||
"eslint": "^8.0.1",
|
||||
"eslint-config-discordeno": "*",
|
||||
"mocha": "^10.1.0",
|
||||
"ts-node": "^10.9.1",
|
||||
"tsconfig": "*",
|
||||
"typescript": "^4.9.3"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import { describe, it } from 'mocha'
|
||||
|
||||
describe('index.ts', () => {
|
||||
it('will import without error', async () => {
|
||||
await import('../src/index.js')
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "tsconfig/test.json",
|
||||
"include": [
|
||||
"tests",
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
slug: welcome
|
||||
title: Welcome
|
||||
authors: [itoh, skillz]
|
||||
tags: [discordeno, hello]
|
||||
---
|
||||
|
||||
Hello and Welcome to Discordeno, a highly scalable Discord library for Deno and Node.js using TypeScript.
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"name": "site",
|
||||
"version": "0.0.0",
|
||||
"private": false,
|
||||
"license": "Apache-2.0",
|
||||
"scripts": {
|
||||
"docusaurus": "docusaurus",
|
||||
|
||||
+1818
-785
File diff suppressed because it is too large
Load Diff
@@ -134,9 +134,16 @@ __metadata:
|
||||
dependencies:
|
||||
"@swc/cli": ^0.1.57
|
||||
"@swc/core": ^1.3.21
|
||||
"@types/node": ^18.11.9
|
||||
"@types/chai": ^4
|
||||
"@types/mocha": ^10
|
||||
"@types/node": ^18.11.15
|
||||
"@types/sinon": ^10.0.13
|
||||
c8: ^7.12.0
|
||||
chai: ^4.3.7
|
||||
eslint: ^8.0.1
|
||||
eslint-config-discordeno: "*"
|
||||
mocha: ^10.1.0
|
||||
ts-node: ^10.9.1
|
||||
tsconfig: "*"
|
||||
typescript: ^4.9.3
|
||||
languageName: unknown
|
||||
|
||||
Reference in New Issue
Block a user