-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some issues with github actions CI (#2724)
Adds [turbo_tests](https://github.com/serpapi/turbo_tests) but doesn't use them on github actions yet
- Loading branch information
Showing
17 changed files
with
220 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,9 @@ jobs: | |
TRANSLATION_BRANCH: main | ||
RETRY_FLAKY: true | ||
steps: | ||
- name: Get CPU cores | ||
id: cpu-info | ||
run: echo "cpu-cores=$(nproc)" >> $GITHUB_OUTPUT | ||
# install system dependencies | ||
- name: Install system dependencies | ||
run: | | ||
|
@@ -85,13 +88,14 @@ jobs: | |
- name: Set up database | ||
run: bin/rails db:create db:schema:load:primary db:schema:load:analytics db:migrate db:seed | ||
- name: Sync translations (only on main by default) | ||
run: bin/check_translations | ||
run: bin/check_translations ${{ secrets.TRANSLATION_IO_API_KEY }} | ||
# Install JS dependencies | ||
- name: build assets | ||
run: bin/rails assets:precompile --trace | ||
# Run tests | ||
- name: Run tests | ||
run: bundle exec rspec | ||
# TODO: switch to using turbo_tests, need to do parallel prepare, etc | ||
- name: publish code coverage | ||
uses: paambaati/[email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -n "$1" ]; then | ||
export TRANSLATION_IO_API_KEY="$1" | ||
fi | ||
|
||
set -e | ||
|
||
CYAN="\033[0;36m" | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
timestamp: 1740269298 | ||
timestamp: 1741390285 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.