Skip to content

Commit 52eb61c

Browse files
authored
Merge branch 'master' into user_schedule
2 parents eebcf6b + 55eae10 commit 52eb61c

File tree

337 files changed

+4856
-4301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

337 files changed

+4856
-4301
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1+
.bundle/cache
2+
.git/
3+
coverage/
4+
db/*.sqlite3
15
Dockerfile
26
docker-compose.*
7+
log/
8+
public/assets/
9+
public/system/
10+
tmp/

.github/workflows/next-rails.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Next-rails
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
next-rails:
11+
if: contains(github.head_ref, 'next-rails')
12+
runs-on: ubuntu-latest
13+
name: next-rails
14+
env:
15+
OSEM_DB_ADAPTER: sqlite3
16+
RAILS_ENV: test
17+
strategy:
18+
matrix:
19+
suite: [models, features, controllers, ability, leftovers]
20+
fail-fast: false
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Sets env vars for next-rails
24+
run: |
25+
echo "BUNDLE_GEMFILE=Gemfile.next" >> $GITHUB_ENV
26+
echo "BUNDLE_CACHE_PATH=vendor/cache.next" >> $GITHUB_ENV
27+
- uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: 3.1.2
30+
bundler-cache: true
31+
- name: Prepare spec
32+
run: |
33+
rm -f osem_test osem_development
34+
bundle exec rake db:setup --trace
35+
bundle exec bin/rails webdrivers:chromedriver:update
36+
- name: spec/${{ matrix.suite }}
37+
run: bundle exec rake spec:${{ matrix.suite }}
38+
- name: coverage upload ${{ matrix.suite }}
39+
uses: codacy/codacy-coverage-reporter-action@master
40+
if: github.ref == 'refs/heads/master'
41+
with:
42+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
43+
coverage-reports: coverage/coverage.xml

.github/workflows/spec.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ name: Specs
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- master
67
pull_request:
7-
branches: [ master ]
8+
branches:
9+
- master
810
workflow_dispatch:
911

1012
jobs:
1113
linters:
1214
runs-on: ubuntu-latest
13-
env:
14-
OSEM_RUBY_VERSION: 2.5.9
1515
steps:
1616
- uses: actions/checkout@v2
1717
- uses: ruby/setup-ruby@v1
1818
with:
19-
ruby-version: 2.5
19+
ruby-version: 3.1.2
2020
bundler-cache: true
2121
- run: bundle exec rubocop
2222
- run: bundle exec haml-lint app/views
@@ -26,7 +26,6 @@ jobs:
2626
name: spec
2727
env:
2828
OSEM_DB_ADAPTER: sqlite3
29-
OSEM_RUBY_VERSION: 2.5.9
3029
RAILS_ENV: test
3130
strategy:
3231
matrix:
@@ -35,13 +34,14 @@ jobs:
3534
- uses: actions/checkout@v2
3635
- uses: ruby/setup-ruby@v1
3736
with:
38-
ruby-version: 2.5
37+
ruby-version: 3.1.2
3938
bundler-cache: true
4039
- name: Prepare spec
4140
run: |
4241
rm -f osem_test osem_development
4342
bundle exec rake db:setup --trace
4443
bundle exec bin/rails webdrivers:chromedriver:update
44+
bundle exec rake factory_bot:lint RAILS_ENV=test
4545
- name: spec/${{ matrix.suite }}
4646
run: bundle exec rake spec:${{ matrix.suite }}
4747
- name: coverage upload ${{ matrix.suite }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ docker-compose.override.yml
4040
.buildconfig
4141
osem_development
4242
osem_test
43+
.ackrc
44+
spec/support/deprecation_shitlist.json

0 commit comments

Comments
 (0)