-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5468 from mishaschwartz/v1.13.0
v1.13.0
- Loading branch information
Showing
361 changed files
with
20,367 additions
and
5,175 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
THISDIR="$(dirname "${BASH_SOURCE[0]}")" | ||
"${THISDIR}/entrypoint-dev-wait-for-install.sh" | ||
|
||
BACKGROUND=true bundle exec rails resque:scheduler | ||
exec "$@" |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: bundler | ||
directory: "/" | ||
schedule: | ||
interval: monthly | ||
time: "10:00" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: monthly | ||
time: "10:00" | ||
open-pull-requests-limit: 10 | ||
ignore: | ||
- dependency-name: react-table | ||
versions: | ||
- "> 6.9.2" | ||
- dependency-name: webpack | ||
versions: | ||
- 5.19.0 | ||
- 5.24.2 |
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,90 @@ | ||
name: MarkUs Tests | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
jobs: | ||
test: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-20.04 | ||
services: | ||
postgres: | ||
image: postgres:12 | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: markus_test | ||
ports: | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
redis: | ||
image: redis | ||
ports: | ||
- 6379:6379 | ||
options: >- | ||
--health-cmd "redis-cli ping" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
--entrypoint redis-server | ||
env: | ||
BUNDLE_WITHOUT: development:production:console:mysql:sqlite:unicorn | ||
RAILS_ENV: test | ||
NODE_ENV: test | ||
RSPEC_RENDER_VIEWS: true | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Install system dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -yqq install libpq-dev cmake ghostscript pandoc imagemagick libmagickwand-dev git | ||
- name: Set up ruby and cache gems | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ruby-2.7 | ||
bundler-cache: true | ||
- name: Set up node/yarn and cache packages | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
cache: yarn | ||
- name: Install yarn packages | ||
run: yarn install | ||
- name: Install python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install python packages | ||
run: | | ||
python3.9 -m venv venv | ||
./venv/bin/pip install nbconvert==6.1.0 # install rest of requirements if needed for tests later | ||
- name: Configure server | ||
run: | | ||
sudo rm -f /etc/localtime | ||
sudo ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime | ||
sudo sed -ri 's/(rights=")none("\s+pattern="PDF")/\1read\2/' /etc/ImageMagick-6/policy.xml | ||
cp config/database.yml.ci config/database.yml | ||
- name: Build assets | ||
run: | | ||
bundle exec rake i18n:js:export && | ||
chmod u+x bin/webpack && | ||
bundle exec rake webpacker:compile | ||
- name: Set up database | ||
run: bundle exec rails db:migrate | ||
- name: Run rspec tests | ||
run: bundle exec rspec | ||
- name: Coveralls | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
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.