mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
test: bun test (#2798)
* test: bun test * Update package.json * ci: update bun version * Update package.json * Update package.json * test * ci: update bun * chore(ci): update bun version --------- Co-authored-by: H01001000 <heiheiho000@gmail.com>
This commit is contained in:
36
.github/workflows/other-runtime-unit-test.yml
vendored
36
.github/workflows/other-runtime-unit-test.yml
vendored
@@ -52,3 +52,39 @@ jobs:
|
||||
${{ runner.os }}-deno-${{ inputs.package }}
|
||||
- name: Deno Unit Test
|
||||
run: yarn test:deno-unit --cache-dir=".turbo" --filter=./packages/${{ inputs.package }}
|
||||
bun-unit-test:
|
||||
name: Bun Unit Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
with:
|
||||
bun-version: "1.0.6"
|
||||
- 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-test:bun-unit-${{ inputs.package }}-${{ github.sha }}
|
||||
- name: Build dist cache
|
||||
if: steps.turbo-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build-${{ 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