Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 committed Dec 14, 2024
1 parent 3617851 commit e67b8c1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,30 @@ on:
branches:
- main
- dev
workflow_dispatch:

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [20]
runs-on: ubuntu-latest

steps:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Checkout
uses: actions/checkout@v4

- name: checkout
uses: actions/checkout@master
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: cache node_modules
uses: actions/cache@v1
- name: Install Node.js
uses: actions/setup-node@v4
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/pnpm-lock.yaml')) }}
node-version: 20
cache: pnpm

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

- name: Test
run: pnpm test
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"build": "unbuild",
"dev": "vitest",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"release": "yarn build && changelogen --patch && git push --follow-tags && yarn publish",
"test": "pnpm lint && pnpm test:types && vitest --run",
"test:types": "tsc --noEmit --skipLibCheck"
Expand Down

0 comments on commit e67b8c1

Please sign in to comment.