Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
ci(server): adding typecheck test
Browse files Browse the repository at this point in the history
  • Loading branch information
zifahm committed Jul 3, 2023
1 parent 41aea85 commit 8db1d3b
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,28 @@ jobs:
- name: 🔬 Lint
run: npm run lint

typecheck:
name: ʦ TypeScript
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: 📥 Download deps
uses: bahmutov/npm-install@v1

- name: 🔎 Type check
run: npm run typecheck --if-present

deploy:
name: 🚀 Deploy
runs-on: ubuntu-latest
needs: [lint]
needs: [lint, typecheck]
# only build/deploy main branch on pushes
if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}

Expand All @@ -61,7 +79,7 @@ jobs:
if: ${{ github.ref == 'refs/heads/dev' }}
uses: superfly/[email protected]
with:
args: deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}-staging -- dockerfile="Dokcerfile.server"
args: deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}-staging --dockerfile="Dokcerfile.server"
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

Expand Down

0 comments on commit 8db1d3b

Please sign in to comment.