This repository has been archived by the owner on May 2, 2024. It is now read-only.
added DatabaseConfiguration.java to point to GCP db #908
Workflow file for this run
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
name: Check | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
ui-checks: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ui | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: use node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: install dependencies | |
run: npm ci | |
- run: npm run test:unit:ci | |
- run: npm run lint | |
- run: npm run prettier | |
- run: npm run stylelint | |
- run: npm run build | |
api-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: cache gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: run unit tests | |
run: ./gradlew api:test | |
- name: run integration tests | |
run: ./gradlew api:apiTestDockerDb | |
- name: generate coverage reports | |
run: ./gradlew api:jacocoTestReport | |
- name: cleanup gradle cache | |
run: | | |
rm -f ~/.gradle/caches/modules-2/modules-2.lock | |
rm -f ~/.gradle/caches/modules-2/gc.properties | |
e2e-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: cache gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Install UI Dependencies | |
working-directory: ./ui | |
run: npm ci | |
- name: Build UI | |
working-directory: ./ui | |
run: | | |
npm run update-version | |
npm run build | |
- name: Start containers | |
working-directory: ./ui/cypress | |
run: docker-compose -f "docker-compose.yml" up | |
- name: Run Cypress Tests | |
working-directory: ./ui | |
run: npm run test:e2e:ci | |
- name: Stop containers | |
working-directory: ./ui/cypress | |
if: always() | |
run: docker-compose -f "docker-compose.yml" down | |
- name: Upload Screenshots | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cypress-artifacts | |
path: /home/runner/work/retroquest/retroquest/ui/cypress/artifacts |