Skip to content

Commit

Permalink
Speed up CI for master (#1068)
Browse files Browse the repository at this point in the history
See commits. Should make things faster...
  • Loading branch information
owi92 authored Jan 10, 2024
2 parents f5ba322 + e34ae4e commit abe22ec
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
run: cargo build ${{ env.ci_cargo_flags }} ${{ env.ci_cargo_target }}
- name: Test backend
working-directory: backend
run: cargo test ${{ env.ci_cargo_target }}
run: cargo test ${{ env.ci_cargo_flags }} ${{ env.ci_cargo_target }}

- name: Move Tobira binary
run: mv backend/${{ env.ci_targetdir }}/tobira tobira
Expand Down Expand Up @@ -140,12 +140,16 @@ jobs:
tobira-meilisearch
- name: Rebuild search index
working-directory: backend
run: cargo run -- search-index update
run: ./tobira search-index update --config util/dev-config/config.toml

- name: Install Playwright browsers
working-directory: frontend
run: npx playwright install --with-deps
- name: Start Tobira for playwright tests
uses: JarvusInnovations/background-action@v1
with:
run: ./tobira serve --config util/dev-config/config.toml &
wait-on: http://localhost:3090
- name: Run playwright tests
working-directory: frontend
run: npx playwright test
Expand Down

0 comments on commit abe22ec

Please sign in to comment.