chore: Clean up github actions workflows.
This commit is contained in:
parent
3c95c23369
commit
b5f1bdd063
2 changed files with 9 additions and 12 deletions
10
.github/workflows/api-testing.yml
vendored
10
.github/workflows/api-testing.yml
vendored
|
@ -7,8 +7,10 @@ on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "api/**"
|
- "api/**"
|
||||||
tags-ignore:
|
|
||||||
- "*"
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: api
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
@ -39,19 +41,15 @@ jobs:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: api
|
|
||||||
run: npm install --save-dev
|
run: npm install --save-dev
|
||||||
|
|
||||||
- name: Install prisma
|
- name: Install prisma
|
||||||
working-directory: api
|
|
||||||
run: npx prisma migrate dev
|
run: npx prisma migrate dev
|
||||||
|
|
||||||
- name: Build source
|
- name: Build source
|
||||||
working-directory: api
|
|
||||||
run: npm build
|
run: npm build
|
||||||
|
|
||||||
- name: Run eslint
|
- name: Run eslint
|
||||||
working-directory: api
|
|
||||||
run: npx eslint src
|
run: npx eslint src
|
||||||
|
|
||||||
- name: Run prettier to verify if we're formatted or not
|
- name: Run prettier to verify if we're formatted or not
|
||||||
|
|
11
.github/workflows/lom-testing.yml
vendored
11
.github/workflows/lom-testing.yml
vendored
|
@ -7,8 +7,10 @@ on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "api/**"
|
- "api/**"
|
||||||
tags-ignore:
|
|
||||||
- "*"
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: lom
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
@ -24,16 +26,13 @@ jobs:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: lom
|
|
||||||
run: npm install --save-dev
|
run: npm install --save-dev
|
||||||
|
|
||||||
- name: Build source
|
- name: Build source
|
||||||
working-directory: lom
|
|
||||||
run: npm build
|
run: npm build
|
||||||
|
|
||||||
- name: Run eslint
|
- name: Run eslint
|
||||||
working-directory: lom
|
run: npx eslint src
|
||||||
run: npx eslint src
|
|
||||||
|
|
||||||
- name: Run prettier to verify if we're formatted or not
|
- name: Run prettier to verify if we're formatted or not
|
||||||
uses: creyD/prettier_action@v4.3
|
uses: creyD/prettier_action@v4.3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue