Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1963 commits
Select commit Hold shift + click to select a range
68ff7a0
#1: GitHub Actions CI
Jul 2, 2020
5341832
#1: GitHub Actions CI
Jul 2, 2020
1e1de6a
#1: GitHub Actions CI
Jul 2, 2020
436877e
#1: GitHub Actions CI
Jul 2, 2020
382af1b
#1: GitHub Actions CI
Jul 2, 2020
85b88dd
Merge branch 'master' of github.com:NationalSecurityAgency/skills-ser…
Jul 2, 2020
41365d2
#1: GitHub Actions CI
Jul 2, 2020
47b80af
#1: GitHub Actions CI
Jul 2, 2020
636a555
#537 - set usernameForDisplay to username if value not already set
Jul 6, 2020
366b098
#537 - set usernameForDisplay to username if value not already set
Jul 6, 2020
0942a4d
#537 - specify type="button" on OAuth buttons to prevent them from su…
Jul 6, 2020
77de569
#526 - guard against null config which can happen on HTTP 401
Jul 6, 2020
42623a0
#526 - guard against null config which can happen on HTTP 401
Jul 7, 2020
caa7c71
#526 - remove debug statements. Return promise w/ empty data rather …
Jul 7, 2020
16d6f40
#1: GitHub Actions CI - WIP
Jul 7, 2020
c0ab756
#1: GitHub Actions CI - WIP
Jul 7, 2020
f5f7f3f
#1: GitHub Actions CI - WIP
Jul 7, 2020
e59a249
#1: GitHub Actions CI - WIP
Jul 7, 2020
3e8141e
#1: GitHub Actions CI - WIP - temporary moved call-stack-prof here
Jul 8, 2020
31be9ce
#1: GitHub Actions CI - WIP
Jul 8, 2020
7e68e67
#1: GitHub Actions CI - WIP
Jul 8, 2020
321f66c
#1: GitHub Actions CI - WIP - addressed CVE-2019-17571 log4j vulnerab…
Jul 8, 2020
d1e0acd
#1: CI - WIP
Jul 8, 2020
ae2b14b
#1: CI - WIP - Websocket specs will now timeout after 30 seconds and …
Jul 9, 2020
a08c816
#1: CI - WIP
Jul 9, 2020
e22bcdf
#1: CI - WIP
Jul 9, 2020
97cd566
#1: CI - WIP
Jul 10, 2020
ec4d715
#5 work in progress, initial stab at postgres sql to identify and awa…
mosefer Jul 9, 2020
cfae095
#5 initial H2 support for native query additions - WIP
mosefer Jul 9, 2020
420cd20
#5 fixed issues with H2 implementation, added integration tests
mosefer Jul 9, 2020
a72be1d
#5 fixing test failure related to changes in achievements due to occu…
mosefer Jul 10, 2020
32f0862
#1: CI - WIP
Jul 10, 2020
b374233
#1: CI - WIP
Jul 10, 2020
179d9f3
#1: CI - WIP
Jul 10, 2020
951c823
#1: CI - WIP
Jul 10, 2020
df1e823
#1: CI - WIP
Jul 10, 2020
c4a984c
#1: CI - WIP
Jul 10, 2020
124b12f
#1: CI - WIP
Jul 10, 2020
9af3462
#1: CI - WIP
Jul 10, 2020
16a5028
#1: CI - WIP
Jul 10, 2020
f77f8da
#1: CI - WIP
Jul 10, 2020
d315166
#1: CI - WIP
Jul 10, 2020
f78ef2a
#1: CI - WIP
Jul 10, 2020
452f5ee
#1: CI - WIP
Jul 10, 2020
33ca485
#1: CI - WIP
Jul 10, 2020
e98a671
#1: CI - WIP
Jul 10, 2020
f592949
#1: CI - WIP
Jul 10, 2020
00e0fed
#1: CI - WIP
Jul 10, 2020
4223269
#1: CI - WIP
Jul 10, 2020
a83f43a
#1: CI - WIP
Jul 10, 2020
2384fc6
#1: CI - WIP
Jul 10, 2020
edb6493
#1: CI - WIP
Jul 10, 2020
f2cbcab
#1: CI - WIP
Jul 10, 2020
527c767
#1: CI - WIP
Jul 10, 2020
9804375
#1: CI - WIP
Jul 10, 2020
5e2fd80
#1: CI - WIP
Jul 10, 2020
16d6a6e
#1: CI - WIP
Jul 10, 2020
e3a7238
#1: CI - WIP
Jul 10, 2020
cd9fb4b
#1: CI - WIP
Jul 10, 2020
0788772
#1: CI - WIP
Jul 10, 2020
9e6dfe4
#1: CI - WIP
Jul 10, 2020
082bca7
#1: CI - WIP
Jul 10, 2020
50fd454
#1: CI - WIP
Jul 10, 2020
e613a66
#1: CI - WIP
Jul 10, 2020
1e9cf09
#1: CI - WIP
Jul 10, 2020
6702b73
#1: CI - WIP
Jul 10, 2020
5ba14de
#1: CI - WIP
Jul 10, 2020
5233ae5
#1: CI - WIP
Jul 10, 2020
bfddaf7
#1: CI - WIP
Jul 11, 2020
980ad4c
#1: CI - WIP
Jul 11, 2020
577abaa
#1: CI - WIP
Jul 11, 2020
8e53229
#1: CI - WIP
Jul 11, 2020
c5ff72c
#1: CI - WIP
Jul 11, 2020
cf9b66c
#1: CI - WIP
Jul 11, 2020
291746c
#1: CI - WIP
Jul 12, 2020
8eace50
#1: CI - WIP
Jul 12, 2020
644425b
#8: attempt to resolve bean circular reference
Jul 13, 2020
946fb9c
Merge pull request #6 from NationalSecurityAgency/ticket#5/trigger_le…
sudo-may Jul 13, 2020
cfa9b0b
#9: CI - Run service tests against PostgreSQL on push
Jul 13, 2020
98db61f
#9: CI - Run service tests against PostgreSQL on push
Jul 14, 2020
c004535
#8: attempt to resolve bean circular reference
Jul 14, 2020
71c9f2d
#5 fixing broken build due to failures in postgres native queries
mosefer Jul 14, 2020
e3d5156
#2 initial work on merging eligble user identification and awarding b…
mosefer Jul 6, 2020
09d1082
#2 minor formatting
mosefer Jul 6, 2020
7ca5f60
#2 fixed bug in H2NativeRepo related to inserting achievements, added…
mosefer Jul 6, 2020
6366202
#3 renaming methods as per code review
mosefer Jul 15, 2020
3dd132c
Merge pull request #3 from NationalSecurityAgency/improve_badge_user_…
mosefer Jul 15, 2020
8ce58a4
#4 - Added integration tests to validate liquibase migrations
Jul 13, 2020
624a63c
#4 - Added integration tests to validate liquibase migrations
Jul 13, 2020
c6bdcff
#4 - renamed using "DBIT" suffix and configured maven failsafe plugin…
Jul 13, 2020
c216dc4
Merge pull request #10 from NationalSecurityAgency/rmmayo/#4_liquibas…
sudo-may Jul 16, 2020
095b608
Bump lodash from 4.17.15 to 4.17.19 in /client-display
dependabot[bot] Jul 16, 2020
a947018
Merge pull request #11 from NationalSecurityAgency/dependabot/npm_and…
sudo-may Jul 16, 2020
d76aa27
#12 - ensure database is removed if it exists prior to execution. Ch…
Jul 17, 2020
4d57f6a
#13: added logging to debug the race condition
Jul 20, 2020
cc6c812
#7 forgotten password feature - WIP
mosefer Jul 14, 2020
9841a59
#7 forgotten password feature, basic capability functioning, cleanup …
mosefer Jul 15, 2020
ed86639
#7 removed obe vue component
mosefer Jul 15, 2020
6e4f326
#7 eslint changes
mosefer Jul 15, 2020
a5c93ed
#7 load existing settings into Email/System settings forms. Fix bug w…
mosefer Jul 16, 2020
53ab050
#7 fixing bugs with email settings implementation
mosefer Jul 16, 2020
d755b9b
#7 resolving conflicts with master
mosefer Jul 20, 2020
a0c9d5c
#7 end to end cypress test for forgot password
mosefer Jul 20, 2020
b18a029
#7 fixing fake-smtp start script
mosefer Jul 20, 2020
203c720
#7 fixing obe comments
mosefer Jul 20, 2020
319bd40
#7 added additional cypress test
mosefer Jul 20, 2020
4adde37
#7 DataMigrationDBIT needs to prevent overriden beans from being expo…
mosefer Jul 21, 2020
6d3a246
#7 removing TODO, creating ticket for future enhancement
mosefer Jul 21, 2020
3ada1e0
#13: fixed race condition in the test
Jul 21, 2020
74c9259
#16 initial support for more information error messages when requesti…
mosefer Jul 22, 2020
f929ca9
#18: enhance markdown support
Jul 22, 2020
ebe5f15
#16 added e2e tests, updated formatting and error language
mosefer Jul 22, 2020
3aeeb8f
Merge pull request #17 from NationalSecurityAgency/dimay/#13-call-sta…
mosefer Jul 22, 2020
c377eb4
#7 code review changes, added confirmation dialogs, updated system se…
mosefer Jul 22, 2020
45a8bb0
#18: enhance markdown support
Jul 22, 2020
b2256ab
#18: enhance markdown support
Jul 22, 2020
eb04214
#18: enhance markdown support
Jul 23, 2020
e5abd31
#18: enhance markdown support
Jul 23, 2020
64593d9
#18: enhance markdown support
Jul 23, 2020
7c343d9
#7 code review changes, adding more e2e tests
mosefer Jul 23, 2020
af5069e
#16 code review comments
mosefer Jul 23, 2020
f3e5226
#18: enhance markdown support
Jul 23, 2020
f7d55cc
#7 wrangling cypress
mosefer Jul 23, 2020
d2eb7b7
Merge pull request #21 from NationalSecurityAgency/rmmayo/#537_oauth-…
rmmayo Jul 23, 2020
e100d01
Merge pull request #19 from NationalSecurityAgency/ticket#16/graceful…
mosefer Jul 23, 2020
dbea429
#18 - removed carrot from node-emoij version
Jul 23, 2020
4d1d5ae
Merge pull request #20 from NationalSecurityAgency/dimay/#18-markdown
rmmayo Jul 23, 2020
bde0ed9
#7 attempts to work around issue identified in cypress-io#7306
mosefer Jul 24, 2020
7122d7e
#7 adding integration tests, trying to work around cypress issues
mosefer Jul 24, 2020
66243df
#7 moving password reset tables into liquibase changeset 2, adding db…
mosefer Jul 24, 2020
89b14c7
#7 disable password reset form if system is not properly configured, …
mosefer Jul 24, 2020
ba9eb8a
#7 license header check is quite particular
mosefer Jul 24, 2020
bd7c5cf
#7: header validation is failing on ci but passing locally; tried to …
Jul 27, 2020
af634e5
#7 fixing settings e2e test
mosefer Jul 27, 2020
111e7a0
#23 Add test to confirm that Gem is not awarded if achieved after end…
mosefer Jul 27, 2020
3d6ff78
#7 moving isFeatureEnabled endpoint to fall under /public
mosefer Jul 27, 2020
324a028
Merge pull request #14 from NationalSecurityAgency/ticket#7/forgot_pa…
mosefer Jul 27, 2020
5e7a777
#24 force faster timeout of invalid email server settings, report err…
mosefer Jul 27, 2020
b12aa22
#26 make sure that fake-smtp server is started as part of the postgre…
mosefer Jul 28, 2020
fe8b5ac
#27 improve explanation provided for events generated by pending-noti…
mosefer Jul 28, 2020
e4dc205
#28: Create and publish skills-service docker image
Jul 28, 2020
eec972e
Merge pull request #25 from NationalSecurityAgency/ticket#24/email_se…
sudo-may Jul 28, 2020
8789c8a
Merge pull request #29 from NationalSecurityAgency/ticket#27/improve_…
sudo-may Jul 28, 2020
c1fdb71
#18: Added warning that specific emoji support is unique to each browser
Jul 28, 2020
1116114
#30 standardize eslint rules between dashboard and client-display
mosefer Jul 29, 2020
9d54416
Merge pull request #31
sudo-may Jul 30, 2020
252258a
#28: Create and publish skills-service docker image
Jul 30, 2020
5f84631
#15 make from email configurable
mosefer Jul 31, 2020
df4bc3d
#28: Create and publish skills-service docker image
Jul 31, 2020
04c053f
#28: Create and publish skills-service docker image
Jul 31, 2020
6647555
Merge pull request #34
sudo-may Jul 31, 2020
77c238f
#33 build and push skills-service-ci docker image on master branch
mosefer Aug 3, 2020
99153c8
#33 fixing yml formatting
mosefer Aug 3, 2020
93cf272
#33 changing case of secret
mosefer Aug 3, 2020
191cac1
Merge pull request #35 from NationalSecurityAgency/ticket#33/publish_…
rmmayo Aug 3, 2020
9b8e25d
#33 fixing build failure
mosefer Aug 3, 2020
d130243
#33 propagate image name from build-and-push to build-docker-image
mosefer Aug 3, 2020
97d32ff
#32 allow customization of header/footer via the system settings
mosefer Aug 3, 2020
b05d8e2
#32 adding cypress attributes to header/footer error messages
mosefer Aug 3, 2020
4248394
#32 removed unused dependency
mosefer Aug 3, 2020
f50917e
#32 adding tests
mosefer Aug 4, 2020
1d07847
#32 adding e2e tests
mosefer Aug 4, 2020
7473a4d
#37 increase size of settings.value column, add server side and clien…
mosefer Aug 6, 2020
38c27e9
#37 adding integration and e2e tests
mosefer Aug 6, 2020
1fa75bd
#37 adding database migration test to confirm that liquibase handles …
mosefer Aug 6, 2020
0a11e70
Merge pull request #38 from NationalSecurityAgency/ticket#37/increase…
rmmayo Aug 6, 2020
84b598c
#39 fixing sed to account for escaped commas in property values
mosefer Aug 7, 2020
f3abc11
#39 remove duplicated passing of properties
mosefer Aug 7, 2020
3e6334a
#39 remove duplicated sed keyword
mosefer Aug 7, 2020
b53d473
#41 force consistent ordering of pending notification achievements
mosefer Aug 10, 2020
26fc90c
#43 re-use service jar from previous job rather than checking out and…
mosefer Aug 10, 2020
e7e3cdd
#42 move custom header/footer out of main app container
mosefer Aug 10, 2020
309cffd
#41 revert unintnetional check-in
mosefer Aug 10, 2020
05d82d5
Merge pull request #44
rmmayo Aug 10, 2020
e171736
#43 upload artifact from correct job
mosefer Aug 10, 2020
42efe70
#42 remove .only from test
mosefer Aug 10, 2020
8a61cf4
#42 adding e2e test to confirm padding removed from custom headers/fo…
mosefer Aug 10, 2020
b27f942
#42 removed .only from settings_specs
mosefer Aug 10, 2020
debb6c5
Merge pull request #45
sudo-may Aug 10, 2020
1a2009c
#40 global metrics page needs to be recognized as a front-end resource
mosefer Aug 10, 2020
0af6361
#43 removed OBE local maven cache from docker publish job
mosefer Aug 10, 2020
abb91c2
Merge pull request #46
sudo-may Aug 10, 2020
71c4f63
#22 - removed oauth2 clients from the default configuration
Aug 11, 2020
782ff6a
#22 - added cypress test
Aug 11, 2020
a1d02cd
Merge pull request #47
sudo-may Aug 12, 2020
8b9b487
#49: OBE
Aug 12, 2020
a5abffd
#48 initial support for dynamic property injection into custom header…
mosefer Aug 12, 2020
86c16ce
#48 finicky license header check
mosefer Aug 13, 2020
58de362
#48 adding e2e test
mosefer Aug 13, 2020
edbd62d
#51: support storing HttpSession in Redis
Aug 13, 2020
bce618b
Merge pull request #50
sudo-may Aug 13, 2020
a0daa6d
#51: support storing HttpSession in Redis
Aug 13, 2020
b6b1b01
#51: support storing HttpSession in Redis - CI
Aug 13, 2020
714d8b2
#51: support storing HttpSession in Redis - CI
Aug 13, 2020
eec246f
#51: support storing HttpSession in Redis - CI
Aug 13, 2020
026f338
#51: support storing HttpSession in Redis - CI
Aug 13, 2020
74f921c
#51: support storing HttpSession in Redis - CI
Aug 13, 2020
3fbaa42
#51: support storing HttpSession in Redis - CI
Aug 14, 2020
a36524a
#51: support storing HttpSession in Redis - CI
Aug 14, 2020
6d6bd5d
#52: do not display stacktrace for the failed email connection on the…
Aug 14, 2020
66f346d
Merge pull request #54 from NationalSecurityAgency/t#51/httpsession-i…
mosefer Aug 14, 2020
0ca5867
#51: mistakenly made the workflows run on check-in, should be scheduled
Aug 14, 2020
f62ca6f
Merge branch 'master' into t#52/email-connect-warning
Aug 14, 2020
50428c8
#53: PostgreSQL Cypress CI were not running against PostgreSQL
Aug 14, 2020
7577765
#52: do not display stacktrace for the failed email connection on the…
Aug 14, 2020
02649ac
#53: PostgreSQL Cypress CI were not running against PostgreSQL
Aug 17, 2020
2126407
#53: PostgreSQL Cypress CI were not running against PostgreSQL
Aug 17, 2020
b7bbe20
#56 changing snapshot image tag
mosefer Aug 17, 2020
2616ab7
#56 remove colons from datestamp in tag
mosefer Aug 17, 2020
2428348
#53: PostgreSQL Cypress CI were not running against PostgreSQL
Aug 17, 2020
4ad291b
Merge pull request #55 from NationalSecurityAgency/t#52/email-connect…
rmmayo Aug 17, 2020
0dc69c3
#53: PostgreSQL Cypress CI were not running against PostgreSQL
Aug 17, 2020
a6116c8
Merge pull request #57
rmmayo Aug 17, 2020
e63d476
fix: service/pom.xml to reduce vulnerabilities
snyk-bot Aug 19, 2020
d4528b2
Merge pull request #1 from TheFoxAtWork/snyk-fix-466291cea8518b827ef9…
TheFoxAtWork Aug 19, 2020
3332f4f
fix: dashboard/package.json & dashboard/.snyk to reduce vulnerabilities
snyk-bot Aug 19, 2020
6c930d4
Merge pull request #3 from TheFoxAtWork/snyk-fix-6d64c03ea6558384b316…
TheFoxAtWork Aug 19, 2020
9f07806
fix: client-display/package.json to reduce vulnerabilities
snyk-bot Aug 19, 2020
410ba39
Merge pull request #4 from TheFoxAtWork/snyk-fix-2cd6a0de53792cbe59d4…
TheFoxAtWork Aug 19, 2020
ef1e851
#59 allow bsd 3 clause in the dependency license check
mosefer Aug 19, 2020
5cebbc8
Merge remote-tracking branch 'upstream/master'
Aug 19, 2020
0fb0a48
#60 allow Unlicense for dashboard dependencies
mosefer Aug 19, 2020
bcdeb24
Merge remote-tracking branch 'upstream/master'
Aug 19, 2020
dd44847
Revert "fix: dashboard/package.json & dashboard/.snyk to reduce vulne…
Aug 19, 2020
e678973
fix: upgrade org.apache.logging.log4j:log4j-slf4j-impl from 2.11.2 to…
snyk-bot Aug 20, 2020
a7f4e47
fix: upgrade joda-time:joda-time from 2.10.3 to 2.10.6
snyk-bot Aug 20, 2020
96b4776
fix: upgrade org.apache.commons:commons-lang3 from 3.9 to 3.11
snyk-bot Aug 20, 2020
bf952e2
fix: upgrade org.springframework.security.oauth.boot:spring-security-…
snyk-bot Aug 20, 2020
23f3771
fix: upgrade org.jsoup:jsoup from 1.10.2 to 1.13.1
snyk-bot Aug 20, 2020
7d5791b
Merge pull request #61 from TheFoxAtWork/master
mosefer Aug 20, 2020
289496f
#62: resolved race condition where global badge cypress tests could c…
Aug 21, 2020
e0e2a2f
#63: made sure that tests are waiting for all required XHRs
Aug 21, 2020
a3651c1
#63: added extra XHR wait
Aug 21, 2020
8823731
Merge pull request #64
rmmayo Aug 21, 2020
76461ae
#63: back to schedule
Aug 21, 2020
abebc56
Merge pull request #6 from TheFoxAtWork/snyk-upgrade-89db4890f590db8b…
TheFoxAtWork Aug 26, 2020
858c7c2
Merge branch 'master' into snyk-upgrade-bbfdf11fd62421403c00ddcb20c01b7d
TheFoxAtWork Aug 26, 2020
117c549
Merge pull request #7 from TheFoxAtWork/snyk-upgrade-bbfdf11fd6242140…
TheFoxAtWork Aug 26, 2020
864f181
Merge branch 'master' into snyk-upgrade-35a11cf45436159ac606a0970e1a8d34
TheFoxAtWork Aug 26, 2020
39d87b0
Merge pull request #8 from TheFoxAtWork/snyk-upgrade-35a11cf45436159a…
TheFoxAtWork Aug 26, 2020
153930c
Merge pull request #9 from TheFoxAtWork/snyk-upgrade-bfde69c6ea85219e…
TheFoxAtWork Aug 26, 2020
8373e9e
Merge pull request #10 from TheFoxAtWork/snyk-upgrade-f15d7afdeef7aff…
TheFoxAtWork Aug 26, 2020
68d33e5
Merge branch 'master' of github:TheFoxAtWork/skills-service
Aug 26, 2020
9ef40ac
Merge pull request #66
sudo-may Aug 26, 2020
623010d
#67 increasing dependency versions, license checking failing, WIP
mosefer Aug 28, 2020
53cb456
#67 updating licenses
mosefer Aug 31, 2020
223b3a5
#67 api changes due to dependency bumps
mosefer Aug 31, 2020
d649960
Merge branch 'master' into ticket#67/dependency_bumps
mosefer Aug 31, 2020
1bc3b34
Merge pull request #68 from NationalSecurityAgency/ticket#67/dependen…
rmmayo Aug 31, 2020
a463d88
#37: use smaller table when counting total number of user for a project
Aug 31, 2020
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
  •  
  •  
  •  
105 changes: 105 additions & 0 deletions .github/workflows/build-and-test-postgres.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Copyright 2020 SkillTree
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Test against PostgreSQL

#on:
# push:
# paths-ignore:
# - 'README.md'
# pull_request:
# paths-ignore:
# - 'README.md'
on:
schedule:
- cron: '0 5 * * *'


jobs:
ci:
runs-on: ubuntu-latest

services:
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: skillsPassword
POSTGRES_DB: skills
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432

steps:
- name: Install Emoji Support
run: sudo apt-get install fonts-noto-color-emoji

- uses: actions/checkout@v2

- uses: actions/setup-node@v2-beta
with:
node-version: '12'

- name: Set up Maven
uses: stCarolas/setup-maven@v3
with:
maven-version: 3.6.3

- uses: actions/setup-java@v1
with:
java-version: '11.X.X' # The JDK version to make available on the path.

- name: Print Versions
run: |
mvn --version
java -version

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Build skills-service
run: mvn --batch-mode install -Dspring.datasource.url=jdbc:postgresql://localhost:5432/skills -Dspring.datasource.username=postgres -Dspring.datasource.password=skillsPassword

- name: Run Cypress tests
run: |
cd e2e-tests
npm install
npm run backend:dropAllDBTables:postgres
npm run cyServices:start:skills-service:postgresql
npm run cyServices:start:client-display
npm run cy:run:postgres
cd ..

- name: upload result artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: CI result artifacts
path: |
./service/target/*.jar
./service/target/*.log
./e2e-tests/cypress
./e2e-tests/logs
99 changes: 99 additions & 0 deletions .github/workflows/build-and-test-redis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Copyright 2020 SkillTree
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Test storing HttpSession in Redis

#on:
# push:
# paths-ignore:
# - 'README.md'
# pull_request:
# paths-ignore:
# - 'README.md'
on:
schedule:
- cron: '0 6 * * *'


jobs:
ci:
runs-on: ubuntu-latest

services:
redis:
image: redis
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps port 6379 on service container to the host
- 6379:6379

steps:
- name: Install Emoji Support
run: sudo apt-get install fonts-noto-color-emoji

- uses: actions/checkout@v2

- uses: actions/setup-node@v2-beta
with:
node-version: '12'

- name: Set up Maven
uses: stCarolas/setup-maven@v3
with:
maven-version: 3.6.3

- uses: actions/setup-java@v1
with:
java-version: '11.X.X' # The JDK version to make available on the path.

- name: Print Versions
run: |
mvn --version
java -version

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Build skills-service
run: mvn --batch-mode install -DskipTests

- name: Run Cypress tests
run: |
cd e2e-tests
npm install
npm run cyServices:start:skills-service:redis
npm run cyServices:start:client-display
npm run cy:run
cd ..

- name: upload result artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: CI result artifacts
path: |
./service/target/*.jar
./service/target/*.log
./e2e-tests/cypress
./e2e-tests/logs
177 changes: 177 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
# Copyright 2020 SkillTree
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Continuous Integration

on:
push:
paths-ignore:
- 'README.md'
- '.github/workflows/build-and-test-postgres.yml'
- '.github/workflows/build-and-test-redis.yml'
- '.gitlab-ci.yml'
pull_request:
paths-ignore:
- 'README.md'
- '.github/workflows/build-and-test-postgres.yml'
- '.github/workflows/build-and-test-redis.yml'
- '.gitlab-ci.yml'

jobs:

service-and-ui-against-h2:
runs-on: ubuntu-latest

steps:
- name: Install Emoji Support
run: sudo apt-get install fonts-noto-color-emoji

- uses: actions/checkout@v2

- uses: actions/setup-node@v2-beta
with:
node-version: '12'

- name: Set up Maven
uses: stCarolas/setup-maven@v3
with:
maven-version: 3.6.3

- uses: actions/setup-java@v1
with:
java-version: '11.X.X' # The JDK version to make available on the path.

- name: Print Versions
run: |
mvn --version
java -version

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Build skills-service
run: mvn --batch-mode install

- name: Run Cypress tests
run: |
cd e2e-tests
npm install
npm run cyServices:start
npm run cy:run
cd ..

- name: upload result artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: CI result artifacts
path: |
./service/target/*.log
./e2e-tests/cypress
./e2e-tests/logs

- name: upload service jar
uses: actions/upload-artifact@v2
with:
name: service jar
path: ./service/target/*.jar

service-against-postgresql:
runs-on: ubuntu-latest

services:
postgres:
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: skillsPassword
POSTGRES_DB: skills
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2-beta
with:
node-version: '12'

- name: Set up Maven
uses: stCarolas/setup-maven@v3
with:
maven-version: 3.6.3

- uses: actions/setup-java@v1
with:
java-version: '11.X.X' # The JDK version to make available on the path.

- name: Print Versions
run: |
mvn --version
java -version

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Build skills-service
run: mvn --batch-mode test -Dspring.datasource.url=jdbc:postgresql://localhost:5432/skills -Dspring.datasource.username=postgres -Dspring.datasource.password=skillsPassword

- name: upload result artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: CI result artifacts
path: |
./service/target/*.log
./e2e-tests/cypress
./e2e-tests/logs

publish-snapshot-docker-image:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: [service-and-ui-against-h2, service-against-postgresql]
steps:
- uses: actions/checkout@v2

- uses: actions/download-artifact@v2
with:
name: service jar
path: ./service/target/

- name: Build image
env:
docker_username: ${{ secrets.DOCKERUSERNAME }}
docker_password: ${{ secrets.DOCKERPASSWORD }}
run: |
cd docker
bash build-and-push.sh "skilltree/skills-service-ci"


5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ target
rebel.xml
rebel.xml.lock
package-lock.json
backend/src/main/resources/public/**
service/src/main/resources/public/**

.vscode
.history
/e2e-tests/cypress/screenshots/
/e2e-tests/cypress/snapshots/
Loading