Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated mysql version to 8.0 #117

Open
wants to merge 412 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
412 commits
Select commit Hold shift + click to select a range
3fed45e
Freeze strings and remove unecessary imports
Mar 22, 2022
4e8d6f9
Avoid passing round instance variable
Mar 22, 2022
59cbb93
Add simplecov for test coverage
Mar 22, 2022
da3464e
Remove unused code
Mar 22, 2022
ae57c32
Add simple Cov config
Mar 23, 2022
728d475
Fix asset url warnings
Mar 23, 2022
46d1a5a
Remove warren initializer
Mar 23, 2022
a4c58fc
Remove unused code
Mar 23, 2022
c99a729
Remove unused code
Mar 23, 2022
ad3d308
Rename class_name to purpose_name
Mar 25, 2022
38b8650
Minor Spec performance improvements
Mar 25, 2022
5fa09aa
Initial improvement on applying layout
Mar 25, 2022
b40bd9c
Fix accidental external calls
Mar 25, 2022
a9762d9
Initial pass on asset_groups controller
Mar 29, 2022
b7890a1
Initial improvement on applying layout
Mar 30, 2022
f2d8d3e
Rubocop performance fixes
Mar 30, 2022
42da0d2
Remove benchmarking
Mar 30, 2022
7225210
Remove temporary shim for new step actions
Mar 30, 2022
5d535cc
Remove unused code
Mar 30, 2022
1dc6a39
Rename get_remote_asset
Mar 30, 2022
462d20a
Refactor RSpec tests for improved reuse
Mar 31, 2022
5d4bbc4
Clean up rubocop_todo.yml
Mar 31, 2022
2ba51ae
Fix tube rack import and asset syncing
Apr 1, 2022
22e0e8c
Simplify uuid generation
Apr 1, 2022
7e3bfc1
Index uuid
Apr 1, 2022
fa1fde5
Improve robustness of racking
Apr 1, 2022
afeb483
Remove redundanct generate_uuid
Apr 1, 2022
5134f66
Clear up temporary code
Apr 1, 2022
af9f085
Restore unseeded database on CI
Apr 1, 2022
089dbfe
Update puma to version 5.6.4
depfu[bot] Apr 1, 2022
975cd34
Remove irrelevant bits of rubocop.yml
Apr 5, 2022
fbad29a
Update node version
Apr 5, 2022
223ec99
Update webmock comment in light of actually using it fully
Apr 5, 2022
183979c
Fix potential selection of wrong fact
Apr 5, 2022
f2f5acd
Revert accidental change of default database
Apr 5, 2022
e28d68e
Update moment to version 2.29.2
depfu[bot] Apr 9, 2022
9d82d9f
Bump nokogiri from 1.13.3 to 1.13.4
dependabot[bot] Apr 12, 2022
8c62852
Update and unify node versions
Apr 13, 2022
650abd2
Remove fluidgx registration
Apr 13, 2022
181b00d
Use the actual method arguments 🤦‍♂️
Apr 13, 2022
085d190
Clean up barcode parser
Apr 13, 2022
6157de5
Fix fallback class
Apr 14, 2022
d2d1449
Merge pull request #173 from sanger/performance_improvements
JamesGlover Apr 14, 2022
8cd5f9c
Merge pull request #182 from sanger/dependabot/bundler/nokogiri-1.13.4
JamesGlover Apr 14, 2022
f4c4900
Merge pull request #179 from sanger/depfu/update/yarn/moment-2.29.2
JamesGlover Apr 14, 2022
0f5bf77
Merge pull request #175 from sanger/depfu/update/puma-5.6.4
JamesGlover Apr 14, 2022
080e72f
Merge pull request #147 from sanger/dependabot/npm_and_yarn/ws-5.2.3
JamesGlover Apr 14, 2022
26e0849
Merge pull request #133 from sanger/dependabot/npm_and_yarn/hosted-gi…
JamesGlover Apr 14, 2022
034992b
Update jquery to version 3.6.0
depfu[bot] Apr 14, 2022
b8a7425
Sync ruby versions in docker build
Apr 14, 2022
740035c
Merge pull request #186 from sanger/fix_docker_build
JamesGlover Apr 14, 2022
29f4500
Sync node versions in dockerfile
Apr 14, 2022
32d58ec
Merge pull request #187 from sanger/fix_docker_build
JamesGlover Apr 14, 2022
a9e84b8
Do not try to initialize warren to build assets
Apr 14, 2022
fb79d81
Fix version number handling
Apr 14, 2022
a0c1f87
Merge pull request #188 from sanger/fix_docker_build
JamesGlover Apr 14, 2022
6a9e3df
Fix warren config preventing docker build
Apr 14, 2022
0cc09bb
Merge pull request #189 from sanger/fix_docker_build
JamesGlover Apr 14, 2022
92747f6
Generate temporary secret key for asset compilation
Apr 14, 2022
8b3c9f8
Merge pull request #190 from sanger/fix_docker_build
JamesGlover Apr 14, 2022
eedce35
Move preset-environments into production group
Apr 14, 2022
c9e8853
Raise error with message when not finding the template
emrojo Apr 22, 2022
f6ded80
Merge pull request #191 from sanger/rt748619_printer_problem
emrojo Apr 22, 2022
21c8ccd
Added test to fix printing error
emrojo Apr 25, 2022
eeca99f
Avoid hitting database once per asset
Apr 26, 2022
6fcc0fc
Merge pull request #192 from sanger/rt748619_printer_problem
JamesGlover Apr 26, 2022
60c4252
Rubocop - autocorrects
Apr 26, 2022
1f12035
Annotate runners with todo
Apr 26, 2022
b73cc76
Rubocop: Style/AccessorGrouping
Apr 26, 2022
cb3ab30
Rubocop: Style/Alias
Apr 26, 2022
e7922e2
Rubocop: Style/BarePercentLiterals
Apr 26, 2022
ae6e860
Rubocop: Style/BlockComments
Apr 26, 2022
30c9737
Rubocop: Style/BlockDelimiters
Apr 26, 2022
0086a11
Rubocop: Style/ColonMethodCall
Apr 26, 2022
a7669fc
Add prettier
Apr 26, 2022
472c700
Rubocop: Rubocop: Style/RedundantBegin
Apr 26, 2022
598252b
Move documentation todo inline
Apr 26, 2022
e63ca62
Rubocop: Style/ParenthesesAroundCondition
Apr 26, 2022
919e838
rubocop:todo Layout/LineLength
Apr 27, 2022
8fbf522
Fix linting action
Apr 27, 2022
4edf177
Prettier autofixes
Apr 27, 2022
92dbffa
Update all Yarn dependencies (2022-04-27)
depfu[bot] Apr 27, 2022
621915a
Update all of rails to version 5.2.7.1
depfu[bot] Apr 27, 2022
2bb4072
Merge pull request #195 from sanger/rubocop_and_layout
JamesGlover Apr 27, 2022
2334c85
Merge branch 'develop' into depfu/batch_all/yarn/2022-03-14
JamesGlover Apr 27, 2022
1071d7b
Merge pull request #198 from sanger/depfu/update/group/rails-5.2.7.1
JamesGlover Apr 27, 2022
17bebee
Merge pull request #169 from sanger/depfu/update/yarn/jquery-3.6.0
JamesGlover Apr 27, 2022
188659d
Merge branch 'develop' into depfu/batch_all/yarn/2022-03-14
JamesGlover Apr 27, 2022
e09ab59
Merge pull request #170 from sanger/depfu/batch_all/yarn/2022-03-14
JamesGlover Apr 27, 2022
ce903e7
Bump handlebars from 4.1.2 to 4.7.7
dependabot[bot] Apr 27, 2022
f029bfa
Switch to yard for documentation
Apr 27, 2022
af1b319
Merge pull request #200 from sanger/switch_to_yard
JamesGlover Apr 27, 2022
45ab574
Fix tube import
Apr 27, 2022
2f03090
Unify import and refresh steps
Apr 27, 2022
36b2665
Include request mocks
Apr 27, 2022
35001fc
Merge pull request #130 from sanger/dependabot/npm_and_yarn/handlebar…
JamesGlover Apr 28, 2022
7159451
Merge pull request #201 from sanger/fix_tube_import
JamesGlover Apr 29, 2022
ba0a580
Move babel loader under production
Apr 29, 2022
d3027c4
Add information to well
Apr 29, 2022
1b64287
Update all Yarn dependencies (2022-05-02)
depfu[bot] May 2, 2022
24e8bff
Merge pull request #204 from sanger/depfu/batch_all/yarn/2022-05-02
JamesGlover May 3, 2022
bf2f898
Migrate existing tests to webmock
Apr 29, 2022
a9736af
Move PMB::PrintJob to own context
Apr 29, 2022
5cec1b7
Update json-api-client
Apr 29, 2022
82cfe50
Add pending v2 tests
Apr 29, 2022
adf6464
Add v2 support to sample extraction
Apr 29, 2022
d2c606e
Remove unused username parameter
Apr 29, 2022
0a52efb
Remove print_asset
Apr 29, 2022
5ba49fb
V1 and V2 error handling
May 3, 2022
84b5b92
Cleanup websocket events
May 6, 2022
80c0ac9
Improve feedback on missing locations
May 6, 2022
a7366bd
Document barcode createable parser
May 10, 2022
2734778
Remove unused methods
May 10, 2022
8fa8dc9
Fix refresh of well modeled tubes
May 11, 2022
5ef4156
Minor code improvements
May 11, 2022
802b7d7
Fixes with_predicate to handle symbols
May 12, 2022
0f3f166
Update payload to match expected by PMB
May 12, 2022
aa2dc12
Correct pmbv2 payload
May 13, 2022
204e5be
Remove unused templates and simplify
May 13, 2022
618905a
Merge pull request #203 from sanger/issue157/dpl-321-as-long-read-we-…
JamesGlover May 18, 2022
b881a72
Update all Bundler dependencies (2022-04-27)
depfu[bot] Apr 27, 2022
64bb02a
Rubocop: Style/FetchEnvVar fix and inline todos
Apr 29, 2022
3f52497
Merge branch 'develop' of github.com:sanger/samples_extraction into d…
May 18, 2022
9637ecf
Add JSON API resources monkey patch
May 19, 2022
b322e5a
Add flipper for feature flipping
May 20, 2022
30621b2
Configure test suite for flipper
May 24, 2022
71ac2b6
Add cleaner handling of errors on print failure
May 24, 2022
6df0e24
Add flag to completely decouple printing
May 24, 2022
772d33a
Flipper features register themselves at startup
May 24, 2022
f02e001
Add initial asset group printing button
May 25, 2022
57b6cc7
Add the ability to print asset groups from frontend
May 27, 2022
7e5ecd2
Propagate feature flags into front-end
May 27, 2022
2b82b4d
Use barcode as defined by SS
emrojo May 27, 2022
d76a8ab
Added test for barcode obtaining from SS
emrojo May 27, 2022
21d5f74
Improve failure errors to handle CI issues
May 31, 2022
7286a20
Mock out report_error to prevent redis connection on CI
May 31, 2022
9b0c2ae
Merge pull request #213 from sanger/develop
JamesGlover Jun 1, 2022
e4f9ea4
Merge pull request #207 from sanger/issue202/dpl-348-as-a-user-{miche…
JamesGlover Jun 7, 2022
57dbfbf
Bump nokogiri from 1.13.4 to 1.13.6
dependabot[bot] Jun 7, 2022
3dbebe4
Update rack to version 2.2.3.1
depfu[bot] Jun 7, 2022
8e65efc
Merge pull request #211 from sanger/dpl399_sequencescape22_barcode_fo…
JamesGlover Jun 8, 2022
a2f0ae0
Merge pull request #212 from sanger/depfu/update/rack-2.2.3.1
JamesGlover Jun 8, 2022
471c571
Update all Yarn dependencies (2022-05-23)
depfu[bot] May 23, 2022
2349c90
Merge pull request #206 from sanger/dependabot/bundler/nokogiri-1.13.6
JamesGlover Jun 8, 2022
a3ebbd6
Merge branch 'master' of github.com:sanger/samples_extraction into de…
Jun 8, 2022
c345305
Merge branch 'develop' of github.com:sanger/samples_extraction into d…
Jun 8, 2022
b6afeea
Merge upstream
Jun 8, 2022
1e8c780
Add headers method
Jun 8, 2022
1075a43
Merge pull request #215 from sanger/fix_broken_messaging
JamesGlover Jun 8, 2022
b88be78
Merge pull request #171 from sanger/depfu/batch_all/2022-03-14
JamesGlover Jun 8, 2022
943d21a
Merge branch 'develop' of github.com:sanger/samples_extraction into d…
Jun 8, 2022
b0fee96
Rescue missing redis at startup
Jun 8, 2022
82e8205
Merge pull request #208 from sanger/depfu/batch_all/yarn/2022-05-23
JamesGlover Jun 8, 2022
7cca9c6
Explicitly disable Redis on docker build
Jun 8, 2022
439bf1c
Update all Yarn dependencies (2022-06-08)
depfu[bot] Jun 8, 2022
65f1bbb
Merge pull request #217 from sanger/depfu/batch_all/yarn/2022-06-08
JamesGlover Jun 8, 2022
8e4fd63
Merge pull request #216 from sanger/fix_docker_build
JamesGlover Jun 8, 2022
38f73e6
Update all Bundler dependencies (2022-06-13)
depfu[bot] Jun 13, 2022
4d0fc45
Update all Yarn dependencies (2022-06-20)
depfu[bot] Jun 20, 2022
65f1137
Update rails-html-sanitizer to version 1.4.3
depfu[bot] Jun 30, 2022
ec0934a
Merge pull request #220 from sanger/depfu/update/rails-html-sanitizer…
JamesGlover Jul 6, 2022
ade4454
Merge pull request #221 from sanger/develop
JamesGlover Jul 6, 2022
0270b1e
Update moment to version 2.29.4
depfu[bot] Jul 6, 2022
4fecd77
Update all of rails to version 5.2.8.1
depfu[bot] Jul 13, 2022
283952c
Bump terser from 4.8.0 to 4.8.1
dependabot[bot] Jul 21, 2022
7414804
Update tzinfo to version 1.2.10
depfu[bot] Jul 22, 2022
f40042d
Merge pull request #222 from sanger/depfu/update/yarn/moment-2.29.4
KatyTaylor Aug 25, 2022
4468d95
Merge pull request #223 from sanger/depfu/update/group/rails-5.2.8.1
KatyTaylor Aug 25, 2022
c650457
Merge pull request #225 from sanger/depfu/update/tzinfo-1.2.10
KatyTaylor Aug 25, 2022
bb88ff0
Merge pull request #218 from sanger/depfu/batch_all/2022-06-13
KatyTaylor Aug 25, 2022
cb2f4e2
Update all Bundler dependencies (2022-08-25)
depfu[bot] Aug 25, 2022
ae51d50
Merge pull request #219 from sanger/depfu/batch_all/yarn/2022-06-20
KatyTaylor Aug 25, 2022
54e14cb
Merge pull request #224 from sanger/dependabot/npm_and_yarn/terser-4.8.1
KatyTaylor Aug 25, 2022
32c2a3e
Update all Yarn dependencies (2022-08-25)
depfu[bot] Aug 25, 2022
eee403b
Merge pull request #228 from sanger/develop
KatyTaylor Aug 25, 2022
1a94041
Machine barcode not supported
emrojo Sep 8, 2022
336f295
Scanning ean13 barcodes bugfix
emrojo Sep 9, 2022
8e0645c
Refactor of solution
emrojo Sep 9, 2022
f4a64a1
Tests added
emrojo Sep 12, 2022
02aecc1
Added more tests
emrojo Sep 13, 2022
88afc8d
Sorting code
emrojo Sep 13, 2022
a496713
More tests
emrojo Sep 13, 2022
025c2f8
Lint
emrojo Sep 13, 2022
62bb0cb
Remove unneeded coment
emrojo Sep 13, 2022
8cbb7f2
Merge pull request #231 from sanger/dpl485_bugfix_ean13_barcodes
emrojo Sep 13, 2022
df85fcb
Bugfix. Barcodes that cannot be transformed to ean13 fail.
emrojo Sep 14, 2022
2c16c09
Added a test to check that nil inputs are ignored
emrojo Sep 14, 2022
eea0768
Merge pull request #233 from sanger/dpl485_bugfix_ean13_barcodes
emrojo Sep 14, 2022
56b8df2
Rubocop Lint/NonAtomicFileOperation
KatyTaylor Oct 28, 2022
a7463d7
Rubocop Style/RedundantParentheses
KatyTaylor Oct 28, 2022
26babd5
Merge pull request #227 from sanger/depfu/batch_all/2022-08-25
KatyTaylor Oct 28, 2022
e4edbaf
Bump nokogiri from 1.13.7 to 1.13.9
dependabot[bot] Oct 28, 2022
6a67edf
Update all Bundler dependencies (2022-10-28)
depfu[bot] Oct 28, 2022
66809e0
Merge pull request #229 from sanger/depfu/batch_all/yarn/2022-08-25
KatyTaylor Oct 28, 2022
fe72722
Merge pull request #235 from sanger/dependabot/bundler/nokogiri-1.13.9
KatyTaylor Oct 28, 2022
a4adbaf
Update all Yarn dependencies (2022-10-28)
depfu[bot] Oct 28, 2022
4bae8ec
Bump loader-utils from 1.4.0 to 1.4.2
dependabot[bot] Nov 17, 2022
1ab9c9d
github workflows update to ubuntu latest
andrewsparkes Nov 24, 2022
8e2e31b
Merge pull request #241 from sanger/dpl-537-github-workflows-ubuntu-l…
andrewsparkes Nov 29, 2022
a36365e
Bump decode-uri-component from 0.2.0 to 0.2.2
dependabot[bot] Dec 7, 2022
8d2578b
Bump nokogiri from 1.13.9 to 1.13.10
dependabot[bot] Dec 8, 2022
2e3fd72
Bump loofah from 2.18.0 to 2.19.1
dependabot[bot] Dec 13, 2022
6e13fb1
Update rails-html-sanitizer to version 1.4.4
depfu[bot] Dec 14, 2022
73126da
Merge pull request #237 from sanger/depfu/batch_all/yarn/2022-10-28
Sangeetha-Bheeman Jan 18, 2023
190aa72
Update all Yarn dependencies (2023-01-18)
depfu[bot] Jan 18, 2023
4f33780
Merge pull request #240 from sanger/dependabot/npm_and_yarn/loader-ut…
Sangeetha-Bheeman Jan 18, 2023
4da2857
Bump json5 from 1.0.1 to 1.0.2
dependabot[bot] Jan 18, 2023
5444caa
Merge pull request #243 from sanger/dependabot/npm_and_yarn/decode-ur…
Sangeetha-Bheeman Jan 18, 2023
25dd89c
Merge pull request #244 from sanger/dependabot/bundler/nokogiri-1.13.10
Sangeetha-Bheeman Jan 18, 2023
f528800
Merge pull request #247 from sanger/dependabot/bundler/loofah-2.19.1
Sangeetha-Bheeman Jan 18, 2023
04370a7
Bump qs from 6.5.2 to 6.5.3
dependabot[bot] Jan 18, 2023
45c9e33
Merge pull request #249 from sanger/depfu/update/rails-html-sanitizer…
Sangeetha-Bheeman Jan 18, 2023
cd372ee
Merge pull request #246 from sanger/dependabot/npm_and_yarn/qs-6.5.3
Sangeetha-Bheeman Jan 18, 2023
c5b7545
Bump rack from 2.2.4 to 2.2.6.2
dependabot[bot] Jan 19, 2023
439b520
Bump globalid from 1.0.0 to 1.0.1
dependabot[bot] Jan 19, 2023
fbad709
Bump ua-parser-js from 0.7.28 to 0.7.33
dependabot[bot] Jan 27, 2023
69ff60b
Merge pull request #251 from sanger/dependabot/npm_and_yarn/json5-1.0.2
harrietc52 Jan 27, 2023
8875d29
merge develop
harrietc52 Jan 27, 2023
cbbf7b0
Merge pull request #252 from sanger/depfu/batch_all/yarn/2023-01-18
harrietc52 Jan 27, 2023
046d9a2
Merge pull request #253 from sanger/dependabot/bundler/rack-2.2.6.2
harrietc52 Jan 27, 2023
6f7c470
Merge pull request #254 from sanger/dependabot/bundler/globalid-1.0.1
harrietc52 Jan 27, 2023
871f8e2
Merge pull request #258 from sanger/dependabot/npm_and_yarn/ua-parser…
harrietc52 Jan 27, 2023
166be68
merge develop
harrietc52 Jan 27, 2023
f4e302d
fix merge conflicts
harrietc52 Jan 27, 2023
cb0e054
rubocop and lint
harrietc52 Jan 27, 2023
6ba3845
lint
harrietc52 Jan 27, 2023
9430941
Bump sanitize from 6.0.0 to 6.0.1
dependabot[bot] Jan 28, 2023
dd0534e
Merge pull request #236 from sanger/depfu/batch_all/2022-10-28
harrietc52 Jan 30, 2023
b216033
Merge pull request #259 from sanger/dependabot/bundler/sanitize-6.0.1
harrietc52 Jan 30, 2023
6178a1a
Dependency updates Feb 2023
emrojo Feb 2, 2023
2bb2bae
Remove config to use the defaults
emrojo Feb 2, 2023
e370d31
Merge pull request #261 from sanger/dependency_updates_feb_2023
emrojo Feb 2, 2023
1291f3f
Testing - delete-package
Sangeetha-Bheeman Jun 9, 2023
08f6ae0
Testing the action - delete-package-versions
Sangeetha-Bheeman Jun 9, 2023
dc5b35c
Prettier fix
Sangeetha-Bheeman Jun 9, 2023
e898c14
Testing new action - snok/container-retention-policy@v2
Sangeetha-Bheeman Jun 9, 2023
03121be
Added write permissions to packages to test if it works
Sangeetha-Bheeman Jun 9, 2023
4d5180d
Testing after changing my github permissions
Sangeetha-Bheeman Jun 13, 2023
561d415
Using a different token
Sangeetha-Bheeman Jun 13, 2023
e492212
Without token and different permissions
Sangeetha-Bheeman Jun 13, 2023
94f32f2
changed permissions
Sangeetha-Bheeman Jun 13, 2023
1f0124b
changed permissions
Sangeetha-Bheeman Jun 13, 2023
9def331
testing with different oprions
Sangeetha-Bheeman Jun 13, 2023
0157935
Changed permissions
Sangeetha-Bheeman Jun 13, 2023
b4a4c3a
Trying with different combinations and token
Sangeetha-Bheeman Jun 13, 2023
b5b791e
Using container-retention-policy action
Sangeetha-Bheeman Jun 14, 2023
29abb7f
Changed the image name
Sangeetha-Bheeman Jun 19, 2023
b3f8bf2
Removed the branch name
Sangeetha-Bheeman Jun 19, 2023
bc1ae9b
Merge pull request #271 from sanger/dpl-785-remove-old-releases
Sangeetha-Bheeman Jun 19, 2023
ea6cb1f
Updated mysql version to 8.0
yoldas Aug 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 2 additions & 14 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"syntax-dynamic-import",
"@babel/plugin-proposal-object-rest-spread",
[
"transform-class-properties",
{
"spec": true
}
]
]
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-syntax-dynamic-import", "@babel/plugin-proposal-object-rest-spread"]
}
19 changes: 19 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file
# Avoids copying these files into our docker-container

# Node modules can break docker-builds on the local machine if it gets
# coppied to the container. (You'll see yarn integrity errors)
node_modules
# .bundle contains bundler configuration which is specific to our local system
.bundle

# These folders store transisent informatation and aren't relevant between
# systems. They are in our .gitignore, so we also add them here to keep
# local builds consistent.
log
tmp

# We're building our container for production, so lets exclude the test and
# spec folders. This will keep our container size a little smaller
test
spec
64 changes: 41 additions & 23 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,53 @@ on:
branches:
- develop
- master
- release-2.0.8-docker
tags:
- release-*
- uat-*
- dev-*

env:
IMAGE_NAME: ${{ github.repository }}/latest
IMAGE_NAME: ${{ github.repository }}/${{ github.event.repository.name }}

permissions:
packages: write

jobs:
build_and_publish:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest

steps:
- run: env
- run: env

- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: /var/lib/docker
key: ${{ runner.os }}-docker-${{ hashFiles('Dockerfile') }}
restore-keys: |
${{ runner.os }}-docker-${{ hashFiles('Dockerfile') }}
- name: Build and tag the Docker image
run: docker build . --file Dockerfile --tag docker.pkg.github.com/${IMAGE_NAME}:${GITHUB_REF##*/}
- name: Tag (latest) the Docker image
run: docker tag docker.pkg.github.com/${IMAGE_NAME}:${GITHUB_REF##*/} docker.pkg.github.com/${IMAGE_NAME}:latest
if: github.ref == 'refs/heads/master'

- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: /var/lib/docker
key: ${{ runner.os }}-docker-${{ hashFiles('Dockerfile') }}
restore-keys: |
${{ runner.os }}-docker-
- name: Build and tag the Docker image
run: docker build . --file Dockerfile --tag docker.pkg.github.com/${IMAGE_NAME}:${GITHUB_REF##*/}
- name: Tag (latest) the Docker image
run: docker tag docker.pkg.github.com/${IMAGE_NAME}:${GITHUB_REF##*/} docker.pkg.github.com/${IMAGE_NAME}:latest
if: github.ref == 'refs/heads/master'
- name: Login to registry
run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} docker.pkg.github.com
- name: Publish image
run: docker push docker.pkg.github.com/${IMAGE_NAME}:${GITHUB_REF##*/}
- name: Publish image (latest)
run: docker push docker.pkg.github.com/${IMAGE_NAME}:latest
if: github.ref == 'refs/heads/master'

- name: Login to registry
run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} docker.pkg.github.com
- name: Publish image
run: docker push docker.pkg.github.com/${IMAGE_NAME}:${GITHUB_REF##*/}
- name: Publish image (latest)
run: docker push docker.pkg.github.com/${IMAGE_NAME}:latest
if: github.ref == 'refs/heads/master'
- name: Remove old releases
uses: snok/container-retention-policy@v2
with:
image-names: ${{ github.event.repository.name }}/*
cut-off: Ten months ago UTC
timestamp-to-use: updated_at
account-type: org
org-name: sanger
keep-at-least: 5
skip-tags: latest
token: ${{ secrets.REMOVE_OLD_IMAGES }}
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Linting

env:
TZ: Europe/London

on:
- push
- pull_request

jobs:
ruby:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache:
true # Runs bundle install and caches gems. See the ruby_test.yml
# example if you need more control over bundler.
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}
- name: Install
run: yarn install
- name: Run prettier
run: yarn prettier --check .
- name: Run Rubocop
run: bundle exec rubocop --extra-details --display-style-guide --parallel
64 changes: 64 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Tests

env:
TZ: Europe/London

on:
- push
- pull_request

jobs:
ruby:
runs-on: ubuntu-latest

env:
RAILS_ENV: test

services:
mysql:
# Use the Mysql docker image https://hub.docker.com/_/mysql
image: mysql:8.0
ports:
- 3306 # Default port mappings
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_ROOT_PASSWORD: ''
MYSQL_DATABASE: samples_extraction_test

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache:
true # Runs bundle install and caches gems. See the ruby_test.yml
# example if you need more control over bundler.
- name: Set up environment
env:
DBPORT: ${{ job.services.mysql.ports[3306] }}
run: bin/setup

- name: Run tests
env:
DBPORT: ${{ job.services.mysql.ports[3306] }}
run: bundle exec rake

yarn:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Export node version
id: node_version
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}

- name: Install
run: yarn install

- name: Run yarn test
run: yarn test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ bower.json
/node_modules
yarn-debug.log*
.yarn-integrity

# Ignore Rediscache
dump.rdb
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.14.2
2 changes: 1 addition & 1 deletion .postcssrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
plugins:
postcss-import: {}
postcss-cssnext: {}
postcss-preset-env: {}
53 changes: 53 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
*.rbc
.DS_Store
*~
capybara-*.html
.rspec
/log
/tmp
/db/*.sqlite3
/db/*.sqlite3-journal
/public/system
/public/assets
/coverage/
/spec/tmp
**.orig
rerun.txt
pickle-email-*.html

# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
config/secrets.yml

# dotenv
# TODO Comment out this rule if environment variables can be committed
.env

## Environment normalization:
/.bundle
/vendor/bundle

# these should all be checked in to normalize the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# if using bower-rails ignore default bower_components path bower.json files
/vendor/assets/bower_components
*.bowerrc
bower.json

# Ignore pow environment settings
.powenv

# Ignore Byebug command history file.
.byebug_history
/public/packs
/public/packs-test
/node_modules
yarn-debug.log*
.yarn-integrity

# Ignore Rediscache
dump.rdb
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"semi": false,
"singleQuote": true
}
62 changes: 60 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,60 @@
require: rubocop-performance
require: rubocop-rails
inherit_from:
- .rubocop_todo.yml
- node_modules/@prettier/plugin-ruby/rubocop.yml

require:
- rubocop-performance
- rubocop-rails

AllCops:
NewCops: enable
inherit_mode:
merge:
- Exclude
Exclude:
- 'db/views_schema.rb'

# Blocks are used to structure tests and are part of the rspec dsl.
# The standard BlockLength limits are too stringent for this purpose.
# Block DSL is also used in routes
# We should be careful keeping rake tasks here, as large tasks are still an issue.
# Not sure if we need to split namespaces across several files though.
Metrics/BlockLength:
Exclude:
- Gemfile
IgnoredMethods:
- describe
- context
- background
- scenario
- namespace
- task
- included
- shared_context
- shared_examples
- shared_examples_for
- state_machine
- configure
- draw
- feature
- subject
- let
- let!
- factory
- define
- guard
- transient
- with_nested_has_many_association
- with_association
- it
- class_eval
- has_metadata
- resources

# Rubocop is choking on this file, so we're excluding it for now.
Rails/NegateInclude:
inherit_mode:
merge:
- Exclude
Exclude:
- 'lib/changes_support/disjoint_list.rb'
Loading