Skip to content

Commit

Permalink
Add CI workflow for testing the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Sep 27, 2024
1 parent 14349dc commit fab8fdf
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Test Python
name: Test
on:
push:
branches:
- master
pull_request:
jobs:
test:
test_backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
Expand All @@ -32,3 +33,24 @@ jobs:
uv lock --locked
uv export --format requirements-txt > requirements.txt.locked
diff requirements.txt requirements.txt.locked
test_frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
cd frontend
npm ci
- name: Build packages
run: |
cd frontend
npm run build
- name: Check lints and formatting
run: |
cd frontend
npm run check

0 comments on commit fab8fdf

Please sign in to comment.