Skip to content

Commit c2f7507

Browse files
authored
Merge pull request nutgaard#4 from nutgaard/fix/workflows
ci: update workflows to use latest version of actions
2 parents 79af24c + 26280ed commit c2f7507

File tree

2 files changed

+13
-27
lines changed

2 files changed

+13
-27
lines changed

.github/workflows/master.yaml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,19 @@ jobs:
1616
name: Test and build
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v1
19+
- uses: actions/checkout@v4
2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 20
23-
- uses: oven-sh/setup-bun@v1
22+
node-version: 22
23+
- uses: oven-sh/setup-bun@v2
2424
with:
25-
bun-version: 1.1.13
25+
bun-version: 1.1.34
2626
- name: Install dependencies
2727
run: bun install --frozen-lockfile
28-
# - name: Test
29-
# run: npm run test
28+
- name: Test
29+
run: bun test
3030
- name: Build
3131
run: bun run build
32-
# - name: Report coverage
33-
# if: ${{ matrix.node == '18' }}
34-
# uses: codecov/codecov-action@v3
35-
# - name: Publish docs
36-
# if: ${{ matrix.node == '18' }}
37-
# uses: crazy-max/ghaction-github-pages@v2
38-
# with:
39-
# build_dir: docs
40-
# env:
41-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4232
- name: Publish package
4333
run: bunx semantic-release
4434
env:

.github/workflows/pr.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,16 @@ jobs:
1212
name: Test and build
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 20
19-
- uses: oven-sh/setup-bun@v1
18+
node-version: 22
19+
- uses: oven-sh/setup-bun@v2
2020
with:
21-
bun-version: 1.1.13
21+
bun-version: 1.1.34
2222
- name: Install dependencies
2323
run: bun install --frozen-lockfile
24-
# - name: Test
25-
# run: npm run test
24+
- name: Test
25+
run: bun test
2626
- name: Build
27-
run: bun run build
28-
# TODO setup tests
29-
# - name: Report coverage
30-
# if: ${{ matrix.node == '18' }}
31-
# uses: codecov/codecov-action@v3
27+
run: bun run build

0 commit comments

Comments
 (0)