Skip to content

Commit

Permalink
faster workflow for standardjs
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfung1031 committed Dec 4, 2023
1 parent 4552dc7 commit 9f09115
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/standardjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@ on: [push, pull_request]

jobs:
build:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npx standard --verbose | npx snazzy
- name: Checkout code
uses: actions/checkout@v3
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest # or "latest", "canary", <sha>
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.bun/install/cache
key: bun-${{ hashFiles('**/bun.lockb') }}
- name: Run linting and formatting
run: bunx standard --verbose | bunx snazzy

0 comments on commit 9f09115

Please sign in to comment.