Skip to content

Commit

Permalink
Merge pull request #13 from sandros94/fix-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Intevel authored Dec 14, 2024
2 parents a4da77a + 7aadb67 commit 4d6887c
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 19 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
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

0 comments on commit 4d6887c

Please sign in to comment.