feat: single workflow that check prettier, linter and build
Some checks failed
CI / build (push) Failing after 11s
Some checks failed
CI / build (push) Failing after 11s
This commit is contained in:
parent
645a10477d
commit
83cbeb7a2e
24
.gitea/workflows/front.yaml
Normal file
24
.gitea/workflows/front.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: CI
|
||||||
|
on: push
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install everything
|
||||||
|
working-directory: ./front/MyINPulse-front
|
||||||
|
run: npm i
|
||||||
|
|
||||||
|
- name: Run ESLint
|
||||||
|
working-directory: ./front/MyINPulse-front
|
||||||
|
run: npx eslint
|
||||||
|
|
||||||
|
- name: Run prettier
|
||||||
|
working-directory: ./front/MyINPulse-front
|
||||||
|
run: npx prettier src --check
|
||||||
|
|
||||||
|
- name: check build
|
||||||
|
working-directory: ./front/MyINPulse-front
|
||||||
|
run: npm run build
|
@ -1,15 +0,0 @@
|
|||||||
name: CI
|
|
||||||
on: push
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install ESLint
|
|
||||||
run: npm install eslint eslint-config-prettier eslint-plugin-vue globals typescript-eslint
|
|
||||||
|
|
||||||
- name: Run ESLint
|
|
||||||
working-directory: ./front/MyINPulse-front
|
|
||||||
run: npx eslint
|
|
@ -1,15 +0,0 @@
|
|||||||
name: CI
|
|
||||||
on: push
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install ESLint
|
|
||||||
run: npm install prettier
|
|
||||||
|
|
||||||
- name: Run ESLint
|
|
||||||
working-directory: ./front/MyINPulse-front
|
|
||||||
run: npx prettier src --check
|
|
Loading…
x
Reference in New Issue
Block a user