Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up CI for master #1068

Merged
merged 3 commits into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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