diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6024dff8..e6446965 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: @@ -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