Skip to content

Commit

Permalink
chore: update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Intevel committed Mar 25, 2024
1 parent c6adfc4 commit 0144c6a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [16]
node: [18]

steps:
- uses: actions/setup-node@v3
Expand All @@ -25,18 +25,21 @@ jobs:
- name: checkout
uses: actions/checkout@master

- name: install pnpm
run: npm install -g pnpm

- name: cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/pnpm-lock.yaml')) }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
run: pnpm install

- name: Lint
run: yarn lint
run: pnpm run lint

# - name: Test
# run: yarn test
Expand Down

0 comments on commit 0144c6a

Please sign in to comment.