Skip to content

Commit ac8603e

Browse files
committed
Fix ci
1 parent a229a9c commit ac8603e

2 files changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/ccbot.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ jobs:
3333
token: ${{ secrets.PAT }}
3434
fetch-depth: 0
3535

36-
- uses: actions/setup-node@v4
36+
- uses: oven-sh/setup-bun@v2
3737
with:
38-
node-version: 20
39-
cache: 'npm'
40-
cache-dependency-path: 'package-lock.json'
38+
bun-version: latest
4139

42-
- run: npm ci
40+
- run: bun ci
4341

4442
- name: Checkout
4543
run: |
@@ -53,7 +51,7 @@ jobs:
5351
run: |
5452
set -e
5553
56-
OUT="$(npm run --silent start)"
54+
OUT="$(bun run --silent start)"
5755
5856
DATA="$(echo "$OUT" | jq '.[]' | jq -s '.[0].metadataCCMod')"
5957

.github/workflows/ci.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@ jobs:
2626
run: |
2727
git checkout $(git remote show origin | awk '/HEAD branch/ {print $NF}')
2828
29-
- uses: actions/setup-node@v4
29+
- uses: oven-sh/setup-bun@v2
3030
with:
31-
node-version: 20
32-
cache: 'npm'
33-
cache-dependency-path: 'package-lock.json'
31+
bun-version: latest
3432

35-
- run: npm ci
33+
- run: bun ci
3634

3735
- name: Get Date
3836
id: get-date
@@ -52,7 +50,8 @@ jobs:
5250
env:
5351
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5452
donttesttools: true
55-
run: BRANCH="$GITHUB_REF" npm run test
53+
BRANCH: ${{ github.ref }}
54+
run: bun run test
5655

5756
- name: Save mod archive cache
5857
uses: actions/cache/save@v4

0 commit comments

Comments
 (0)