-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Ruby version in DockerfileBase to 3.3 * button_to changes * Load new defaults * Update deps * Fixes * Log background daemon also to stdout for convenience * Occasionally print the names of running background tasks * Fixes * Import fixes * Small fixes * Update bundler version * Dockerfile update * Update Ruby version to 3.0 in GitHub actions * Fix factories * Test fixes * Belongs to changes * Fix rest of model specs * Fix controller specs * WIP usermanual tests * Rubocop * Install chromium in Dockerfile * Revert "WIP usermanual tests" This reverts commit abd9f90. * Test fixes * Update Docker compose commands in CI workflow * Stop running spec/usermanual
- Loading branch information
Showing
74 changed files
with
688 additions
and
536 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 |
---|---|---|
|
@@ -18,11 +18,11 @@ jobs: | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | ||
git submodule update --init --recursive | ||
- name: Docker compose build | ||
run: docker-compose build | ||
run: docker compose build | ||
- name: Setup database & test env | ||
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
run: docker compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
- name: Run spec_v8 tests | ||
run: docker-compose run web bin/spec_v8 | ||
run: docker compose run web bin/spec_v8 | ||
|
||
spec_models: | ||
runs-on: ubuntu-latest | ||
|
@@ -36,11 +36,11 @@ jobs: | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | ||
git submodule update --init --recursive | ||
- name: Docker compose build | ||
run: docker-compose build | ||
run: docker compose build | ||
- name: Setup database & test env | ||
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
run: docker compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
- name: Run spec_models tests | ||
run: docker-compose run web bin/spec_models | ||
run: docker compose run web bin/spec_models | ||
|
||
spec_controllers: | ||
runs-on: ubuntu-latest | ||
|
@@ -54,11 +54,11 @@ jobs: | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | ||
git submodule update --init --recursive | ||
- name: Docker compose build | ||
run: docker-compose build | ||
run: docker compose build | ||
- name: Setup database & test env | ||
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
run: docker compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
- name: Run spec_controllers tests | ||
run: docker-compose run web bin/spec_controllers | ||
run: docker compose run web bin/spec_controllers | ||
|
||
spec_features: | ||
runs-on: ubuntu-latest | ||
|
@@ -72,11 +72,11 @@ jobs: | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | ||
git submodule update --init --recursive | ||
- name: Docker compose build | ||
run: docker-compose build | ||
run: docker compose build | ||
- name: Setup database & test env | ||
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
run: docker compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
- name: Run spec_features tests | ||
run: docker-compose run web bin/spec_features | ||
run: docker compose run web bin/spec_features | ||
|
||
spec_lib: | ||
runs-on: ubuntu-latest | ||
|
@@ -90,11 +90,11 @@ jobs: | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | ||
git submodule update --init --recursive | ||
- name: Docker compose build | ||
run: docker-compose build | ||
run: docker compose build | ||
- name: Setup database & test env | ||
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
run: docker compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
- name: Run spec_lib tests | ||
run: docker-compose run web bin/spec_lib | ||
run: docker compose run web bin/spec_lib | ||
|
||
spec_integration: | ||
runs-on: ubuntu-latest | ||
|
@@ -108,32 +108,8 @@ jobs: | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | ||
git submodule update --init --recursive | ||
- name: Docker compose build | ||
run: docker-compose build | ||
run: docker compose build | ||
- name: Setup database & test env | ||
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
run: docker compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
- name: Run spec_integration tests | ||
run: docker-compose run web bin/spec_integration | ||
|
||
spec_usermanual: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: false | ||
- name: Setup git submodules | ||
run: | | ||
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | ||
git submodule update --init --recursive | ||
- name: Docker compose build | ||
run: docker-compose build | ||
- name: Setup database & test env | ||
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | ||
- name: Run spec_usermanual tests | ||
run: docker-compose run web bin/spec_usermanual | ||
- name: Update manual to testmycode-usermanual | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: doc/usermanual | ||
target-folder: usermanual | ||
run: docker compose run web bin/spec_integration |
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,11 +1,13 @@ | ||
FROM eu.gcr.io/moocfi-public/tmc-server-base:latest | ||
LABEL name tmc-server | ||
LABEL name=tmc-server | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y install curl gnupg nodejs chromium \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ADD Gemfile /app/Gemfile | ||
ADD Gemfile.lock /app/Gemfile.lock | ||
RUN bundle install --system --gemfile /app/Gemfile | ||
RUN apt-get update | ||
RUN apt-get -y install curl gnupg | ||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - | ||
RUN apt-get -y install nodejs | ||
RUN bundle config set path.system true \ | ||
&& bundle install --gemfile /app/Gemfile | ||
|
||
ADD . /app |
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,4 +1,4 @@ | ||
FROM ruby:2.6 | ||
FROM ruby:3.3 | ||
LABEL name tmc-server-base | ||
|
||
ENV PHANTOMJS_VERSION 2.1.1 | ||
|
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.