Skip to content

Commit

Permalink
Update GitHub test workflow and Prettier configuration
Browse files Browse the repository at this point in the history
Refined the actions in the GitHub test workflow, giving explicit names to certain steps for clarity. Additionally, modified the Prettier configuration to skip the `pnpm-lock.yaml` file to prevent unnecessary formatting actions and facilitate smoother workflow execution.
  • Loading branch information
hckhanh committed Feb 26, 2024
1 parent da4b112 commit b962a94
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ on:

jobs:
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
Expand All @@ -22,14 +24,18 @@ jobs:
- name: Prettier check
run: pnpm test:prettier
test:
name: Unit tests
needs: lints
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20, 21]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Set up Node.js ${{matrix.node}}
uses: actions/setup-node@v4
with:
Expand Down

0 comments on commit b962a94

Please sign in to comment.