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:
|
||||
paths:
|
||||
- "api/**"
|
||||
tags-ignore:
|
||||
- "*"
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: api
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
@ -39,19 +41,15 @@ jobs:
|
|||
node-version: 20.x
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: api
|
||||
run: npm install --save-dev
|
||||
|
||||
- name: Install prisma
|
||||
working-directory: api
|
||||
run: npx prisma migrate dev
|
||||
|
||||
- name: Build source
|
||||
working-directory: api
|
||||
run: npm build
|
||||
|
||||
- name: Run eslint
|
||||
working-directory: api
|
||||
run: npx eslint src
|
||||
|
||||
- name: Run prettier to verify if we're formatted or not
|
||||
|
|
9
.github/workflows/lom-testing.yml
vendored
9
.github/workflows/lom-testing.yml
vendored
|
@ -7,8 +7,10 @@ on:
|
|||
push:
|
||||
paths:
|
||||
- "api/**"
|
||||
tags-ignore:
|
||||
- "*"
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: lom
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
@ -24,15 +26,12 @@ jobs:
|
|||
node-version: 20.x
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: lom
|
||||
run: npm install --save-dev
|
||||
|
||||
- name: Build source
|
||||
working-directory: lom
|
||||
run: npm build
|
||||
|
||||
- name: Run eslint
|
||||
working-directory: lom
|
||||
run: npx eslint src
|
||||
|
||||
- name: Run prettier to verify if we're formatted or not
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue