Skip to content

Commit 82c1531

Browse files
committed
Adding a pipeline and splitting the task to lint and lint fix
1 parent 7e6f680 commit 82c1531

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/pipeline.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Pipeline
2+
3+
on:
4+
push:
5+
branches: [develop]
6+
pull_request:
7+
branches: [develop]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
lint:
15+
runs-on: ubuntu-22.04
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Use Node.js from .nvmrc
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version-file: .nvmrc
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
24+
- name: Install dependencies
25+
run: pnpm install
26+
- name: Run linter
27+
run: pnpm lint

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"preview": "vite preview",
1313
"build-only": "vite build",
1414
"type-check": "vue-tsc --build",
15-
"lint": "eslint . --fix",
15+
"lint": "eslint",
16+
"lint:fix": "eslint --fix",
1617
"format": "prettier --write src/",
1718
"install-in-amoxtli-vue": "cp -r dist/ ../amoxtli-vue/src/templates/yehyecoa",
1819
"bi": "npm run build && npm run install-in-amoxtli-vue",

0 commit comments

Comments
 (0)