refactor: improve code quality
This commit is contained in:
@@ -6,8 +6,24 @@ on:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
run_install: true
|
||||
|
||||
- name: Typecheck and Lint
|
||||
run: pnpm check
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: typecheck
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -25,5 +41,5 @@ jobs:
|
||||
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
docker build -t git.pihkaal.me/pihkaal/lbf-bot:latest -f apps/discord-bot/Dockerfile .
|
||||
docker build --build-arg COMMIT_SHA=$(git rev-parse --short HEAD) -t git.pihkaal.me/pihkaal/lbf-bot:latest -f apps/discord-bot/Dockerfile .
|
||||
docker push git.pihkaal.me/pihkaal/lbf-bot:latest
|
||||
|
||||
Reference in New Issue
Block a user