Skip to content

Commit 4d6887c

Browse files
authored
Merge pull request #13 from sandros94/fix-ci
2 parents a4da77a + 7aadb67 commit 4d6887c

File tree

3 files changed

+81
-19
lines changed

3 files changed

+81
-19
lines changed

.github/workflows/ci.yml

+14-17
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,30 @@ on:
99
branches:
1010
- main
1111
- dev
12+
workflow_dispatch:
1213

1314
jobs:
1415
ci:
15-
runs-on: ${{ matrix.os }}
16-
17-
strategy:
18-
matrix:
19-
os: [ubuntu-latest]
20-
node: [20]
16+
runs-on: ubuntu-latest
2117

2218
steps:
23-
- uses: actions/setup-node@v1
24-
with:
25-
node-version: ${{ matrix.node }}
19+
- name: Checkout
20+
uses: actions/checkout@v4
2621

27-
- name: checkout
28-
uses: actions/checkout@master
22+
- uses: pnpm/action-setup@v4
23+
name: Install pnpm
24+
with:
25+
version: 9
26+
run_install: false
2927

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

3634
- name: Install dependencies
37-
if: steps.cache.outputs.cache-hit != 'true'
38-
run: pnpm i
35+
run: pnpm install
3936

4037
- name: Test
4138
run: pnpm test

.gitignore

+66-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,68 @@
1-
.vscode
1+
# .gitignore v1.4.0
2+
# https://gist.github.com/Sandros94/7f3dc1539c8f5905c495aa1bb417589c
3+
4+
# Dependencies
25
node_modules
6+
7+
# Temp directories
8+
.temp
9+
.tmp
10+
.cache
11+
12+
# Generated dirs
313
dist
4-
types
14+
15+
# Nuxt
16+
.nitro
17+
.nuxt
18+
.output
19+
.data
20+
.vercel_build_output
21+
.build-*
22+
.netlify
23+
24+
# PNPM
25+
.pnpm-store
26+
27+
# Yarn
28+
**/.yarn/cache
29+
**/.yarn/*state*
30+
31+
# Local env files
32+
.env
33+
.env.*
34+
!.env.example
35+
36+
# Testing
37+
reports
38+
coverage
39+
*.lcov
40+
.nyc_output
41+
42+
# Logs
43+
logs
44+
*.log
45+
46+
# VSCode
47+
.vscode/*
48+
!.vscode/settings.json
49+
!.vscode/tasks.json
50+
!.vscode/launch.json
51+
!.vscode/extensions.json
52+
!.vscode/*.code-snippets
53+
54+
# Intellij idea
55+
*.iml
56+
.idea
57+
58+
# OSX
59+
.DS_Store
60+
.AppleDouble
61+
.LSOverride
62+
.AppleDB
63+
.AppleDesktop
64+
Network Trash Folder
65+
Temporary Items
66+
.apdisk
67+
68+
# Project specific

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"build": "unbuild",
3939
"dev": "vitest",
4040
"lint": "eslint .",
41+
"lint:fix": "eslint --fix .",
4142
"release": "yarn build && changelogen --patch && git push --follow-tags && yarn publish",
4243
"test": "pnpm lint && pnpm test:types && vitest --run",
4344
"test:types": "tsc --noEmit --skipLibCheck"

0 commit comments

Comments
 (0)