Skip to content

Commit

Permalink
Fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cephalization committed Nov 13, 2024
1 parent bdda940 commit 6900f9e
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ jobs:
name: Lint TypeScript
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Nodejs
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install deps and build (with cache, pnpm)
uses: pnpm/action-setup@v4
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "pnpm"
- name: Install deps
run: pnpm install
- name: Lint
run: pnpm lint
- name: Prettier
Expand All @@ -29,17 +31,21 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Use Node ${{ matrix.node }}
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"

- name: Install deps and build (with cache, pnpm)
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install deps
run: pnpm install

- name: Test
run: pnpm test -- --coverage
Expand Down

0 comments on commit 6900f9e

Please sign in to comment.