Skip to content

Commit

Permalink
ci: update checkout action to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Oct 28, 2023
1 parent 7bec807 commit 36ff237
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@
name: CI
on: [push, pull_request]
jobs:
test_push:
push:
name: Push
permissions:
checks: read
statuses: write
contents: write
packages: write
id-token: write
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4
with:
fetch-depth: ${{ github.ref == 'refs/heads/master' && '0' || '1' }}

- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down Expand Up @@ -43,13 +51,13 @@ jobs:
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
run: npm_config_yes=true npx zx-semrel

test_pr_bun:
pr_bun:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-22.04
name: PR with Bun
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4

- name: Setup Bun
uses: antongolub/action-setup-bun@v1
Expand All @@ -63,7 +71,7 @@ jobs:
timeout-minutes: 2
run: bun test:bun

test_pr_node:
pr_node:
if: ${{ github.event_name == 'pull_request' }}
name: PR Node.js v${{ matrix.node-version }}, OS ${{ matrix.os }}
strategy:
Expand All @@ -74,7 +82,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down

0 comments on commit 36ff237

Please sign in to comment.