-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- use knapsack for all tests - add new job for generating knapsack timings file - add example code to merge timings file - simplify existing workflow - use node caching - increase workers to 16 - compatibility fix for new chrome versions
- Loading branch information
Showing
5 changed files
with
548 additions
and
218 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,38 @@ | ||
name: "Generate knapsack timings" | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
rspec: | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres:14 | ||
ports: | ||
- "5432:5432" | ||
env: | ||
POSTGRES_DB: rails_test | ||
POSTGRES_USER: rails | ||
POSTGRES_PASSWORD: password | ||
env: | ||
RAILS_ENV: test | ||
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 10.* | ||
cache: yarn | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- run: bin/rails db:schema:load | ||
- run: bundle exec rake assets:precompile | ||
# Fail early if we have issues with translation keys | ||
- run: bundle exec i18n-tasks health | ||
- run: bundle exec rspec | ||
env: | ||
KNAPSACK_GENERATE_REPORT: true | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: knapsack_rspec_report | ||
path: knapsack_rspec_report.json |
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.