Skip to content

Commit

Permalink
Merge branch 'game_historic_service' of https://github.com/Arquisoft/…
Browse files Browse the repository at this point in the history
…wiq_es6c into game_historic_service
  • Loading branch information
MarcosBarrilVillaverde committed Apr 30, 2024
2 parents d365a05 + 2856317 commit ed5736a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- run: npm --prefix webapp ci
- run: npm --prefix gameservice ci
- run: npm --prefix apisgatewayservice ci
- run: npm --prefix apisgatewayservice ci
- run: npm --prefix users/authservice test -- --coverage
- run: npm --prefix users/userservice test -- --coverage
- run: npm --prefix gatewayservice test -- --coverage
Expand Down Expand Up @@ -251,6 +252,26 @@ jobs:
registry: ghcr.io
workdir: apisgatewayservice
platforms: linux/arm64
docker-push-apisgatewayservice:
name: Push apis gateway service Docker Image to GitHub Packages
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: [e2e-tests]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: arquisoft/wiq_es6c/apisgatewayservice
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: apisgatewayservice
platforms: linux/arm64
deploy:
name: Deploy over SSH
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function validateFields(query) {
app.get('/questions', async (req, res) => {
try {


const { preguntas, respuestas, temas } = validateFields(req.query);
try {
const retQuestions = await QuestionGenerator.generateQuestions(preguntas, respuestas, temas);
Expand Down
3 changes: 3 additions & 0 deletions userStatsService/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ paths:
type: string
format: date-time
description: Creation date and time of the game.
format: date-time
description: Creation date and time of the game.
example: '2024-03-17T20:47:23.935Z'
___v:
type: integer
Expand Down Expand Up @@ -205,3 +207,4 @@ paths:
type: string
description: Error information.
example: Internal Server Error

0 comments on commit ed5736a

Please sign in to comment.