forked from iisaphd/enroll
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automated testing optimization (#2753)
* initial commit for the rspec and cucumber GHA rewrite * proper way to install legacy chrome + concurrency killer * get location of custom chrome * pin exact chrome version * go to latest chrome * adding rspec, increasing threads for cucumber * push multitasking * MORE * MORE * LAST PUSH * MORE * found the culprit of the slowness, components specs were loaded twice, changed to load via config instead of a spec/component file * fixing error of loading everything on a specific run * trying to split a big rspec file * forcing easy test with big test * try to suggest some easy files * fixing the json * just pin the slow one at the beginning * trying to split the long file in 2 * split in 4 parts * update all actions that were throwing warnings * I wiped rubocop, so sorry, bringing it back * fixing threaded name in both runs * changing id for pr checks * fixed branch for checks * another wrong branch * show rubocop on log * split steps * I need to see the error * pleasing rubocop * more rubocop * removing extra end
- Loading branch information
1 parent
b08fc2e
commit 63e0995
Showing
15 changed files
with
2,705 additions
and
2,703 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: pull request checks | ||
on: | ||
pull_request: | ||
|
||
concurrency: | ||
group: checks-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
rubocop: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
rubygems: 3.3.26 | ||
- name: Run rubocop | ||
run: | | ||
bundle exec rubocop-git origin/master | tee results.txt | ||
# - name: Print results | ||
# run: | | ||
# cat results.txt | ||
- name: Evaluate results | ||
run: | | ||
cat results.txt | grep "no offenses detected" |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[ | ||
{ "files": ["spec/models/census_employee_spec.rb"]}, | ||
{ "files": ["spec/models/census_employee_part2_spec.rb"]}, | ||
{ "files": ["spec/models/census_employee_part3_spec.rb"]}, | ||
{ "files": ["spec/models/census_employee_part4_spec.rb"]} | ||
] |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.