mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
ci: Use mocha for both deno and bun (#4067)
* Use mocha for both deno and bun * Use any Bun 1.1 * remove build:type dependency in lib-check.yml * Pin point 1.1.42 * remove packages/bot/.mocharc.json
This commit is contained in:
@@ -135,7 +135,7 @@ jobs:
|
||||
# Not using matrix because test later on cant needs a specific job
|
||||
bot-unit-test:
|
||||
name: Bot
|
||||
needs: [build-dist, build-type-and-test]
|
||||
needs: [build-dist]
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
@@ -159,7 +159,7 @@ jobs:
|
||||
|
||||
discordeno-unit-test:
|
||||
name: Discordeno
|
||||
needs: [build-dist, build-type-and-test]
|
||||
needs: [build-dist]
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
@@ -174,7 +174,7 @@ jobs:
|
||||
|
||||
gateway-unit-test:
|
||||
name: Gateway
|
||||
needs: [build-dist, build-type-and-test]
|
||||
needs: [build-dist]
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
@@ -188,7 +188,7 @@ jobs:
|
||||
package: gateway
|
||||
gateway-other-runtime-test:
|
||||
name: Gateway
|
||||
needs: [gateway-unit-test, gateway-integration-test]
|
||||
needs: [gateway-unit-test]
|
||||
uses: ./.github/workflows/other-runtime-unit-test.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
@@ -196,7 +196,7 @@ jobs:
|
||||
|
||||
rest-unit-test:
|
||||
name: Rest
|
||||
needs: [build-dist, build-type-and-test]
|
||||
needs: [build-dist]
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
@@ -220,7 +220,7 @@ jobs:
|
||||
|
||||
types-unit-test:
|
||||
name: Types
|
||||
needs: [build-dist, build-type-and-test]
|
||||
needs: [build-dist]
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
@@ -235,7 +235,7 @@ jobs:
|
||||
|
||||
utils-unit-test:
|
||||
name: Utils
|
||||
needs: [build-dist, build-type-and-test]
|
||||
needs: [build-dist]
|
||||
uses: ./.github/workflows/unit-test.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
|
||||
@@ -16,9 +16,9 @@ jobs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
- uses: denoland/setup-deno@main
|
||||
- uses: denoland/setup-deno@v2
|
||||
with:
|
||||
deno-version: 'v1.29'
|
||||
deno-version: 'v2.1.x'
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
@@ -41,21 +41,6 @@ jobs:
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build-${{ 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: Deno cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.deno
|
||||
~/.cache/deno
|
||||
key: ${{ runner.os }}-deno-${{ inputs.package }}-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-deno-${{ inputs.package }}
|
||||
- name: Deno Unit Test
|
||||
run: yarn test:deno-unit --cache-dir=".turbo" --filter=./packages/${{ inputs.package }}
|
||||
bun-unit-test:
|
||||
@@ -68,7 +53,7 @@ jobs:
|
||||
node-version: 18
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: '1.0.6'
|
||||
bun-version: '1.1.42'
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
@@ -91,12 +76,6 @@ jobs:
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build-${{ 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: Bun Unit Test
|
||||
run: yarn test:bun-unit --cache-dir=".turbo" --filter=./packages/${{ inputs.package }}
|
||||
timeout-minutes: 1
|
||||
|
||||
Reference in New Issue
Block a user