Skip to content

Commit

Permalink
ci: update workflows to use latest version of actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nutgaard committed Nov 14, 2024
1 parent 79af24c commit 26280ed
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 27 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,19 @@ jobs:
name: Test and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: oven-sh/setup-bun@v1
node-version: 22
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.13
bun-version: 1.1.34
- name: Install dependencies
run: bun install --frozen-lockfile
# - name: Test
# run: npm run test
- name: Test
run: bun test
- name: Build
run: bun run build
# - name: Report coverage
# if: ${{ matrix.node == '18' }}
# uses: codecov/codecov-action@v3
# - name: Publish docs
# if: ${{ matrix.node == '18' }}
# uses: crazy-max/ghaction-github-pages@v2
# with:
# build_dir: docs
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package
run: bunx semantic-release
env:
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,16 @@ jobs:
name: Test and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: oven-sh/setup-bun@v1
node-version: 22
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.13
bun-version: 1.1.34
- name: Install dependencies
run: bun install --frozen-lockfile
# - name: Test
# run: npm run test
- name: Test
run: bun test
- name: Build
run: bun run build
# TODO setup tests
# - name: Report coverage
# if: ${{ matrix.node == '18' }}
# uses: codecov/codecov-action@v3
run: bun run build

0 comments on commit 26280ed

Please sign in to comment.