Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ci #13

Merged
merged 2 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
68 changes: 66 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,68 @@
.vscode
# .gitignore v1.4.0
# https://gist.github.com/Sandros94/7f3dc1539c8f5905c495aa1bb417589c

# Dependencies
node_modules

# Temp directories
.temp
.tmp
.cache

# Generated dirs
dist
types

# Nuxt
.nitro
.nuxt
.output
.data
.vercel_build_output
.build-*
.netlify

# PNPM
.pnpm-store

# Yarn
**/.yarn/cache
**/.yarn/*state*

# Local env files
.env
.env.*
!.env.example

# Testing
reports
coverage
*.lcov
.nyc_output

# Logs
logs
*.log

# VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Intellij idea
*.iml
.idea

# OSX
.DS_Store
.AppleDouble
.LSOverride
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Project specific
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
Loading