From 7610c49f33bb5d04375e765f6bbaa59d30267866 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 5 Feb 2024 15:22:58 +0300 Subject: [PATCH] ci-improved --- .gitea/workflows/main.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index c88393d..f0cf23e 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -2,6 +2,24 @@ name: 'deploy' on: [push] jobs: + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install dependencies + run: npm ci + + - name: Lint with Biome + run: npx biome ci . + + - name: Check types + run: npx tsc --noEmit + deploy: runs-on: ubuntu-latest steps: @@ -19,4 +37,4 @@ jobs: with: branch: 'main' git_remote_url: 'ssh://dokku@staging.discours.io:22/${{ steps.repo_name.outputs.repo }}' - ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} \ No newline at end of file + ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}