Skip to content

Commit

Permalink
fga-eps-mds/2021.1-Oraculo#123 Pushing test file
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrike100 authored Oct 27, 2021
1 parent bfa9e75 commit aaaa3a1
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0

- name: Run tests
run: sudo docker-compose run frontend bash -c "yarn && yarn test --coverage --watchAll=false"


- name: Get Date
id: date
run: echo "::set-output name=date::$(date +'%m-%d-%Y-%H-%M')"

- name: Run tests
run: sudo docker-compose run frontend bash -c "yarn && yarn test --coverage --outputFile=fga-eps-mds-2021_1-Oraculo-FrontEnd-${{ steps.date.outputs.date }}-test.json --json --watchAll=false"

- name: Create JSON
run: curl -X POST 'https://sonarcloud.io/api/measures/component_tree?component=fga-eps-mds_2021-1-PC-GO-Frontend&metricKeys=files,functions,complexity,comment_lines_density,duplicated_lines_density,coverage,ncloc,security_rating,tests,test_success_density,test_execution_time,reliability_rating&ps=500' > fga-eps-mds-2021_1-Oraculo-FrontEnd-${{ steps.date.outputs.date }}.json

Expand All @@ -44,3 +44,16 @@ jobs:
user_email: ${{ secrets.USER_EMAIL }}
user_name: ${{ secrets.USER_NAME }}
commit_message: "Adding SonarCloud file - fga-eps-mds-2021_1-Oraculo-FrontEnd-${{ steps.date.outputs.date }}.json"

- name: Pushes test file
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: fga-eps-mds-2021_1-Oraculo-FrontEnd-${{ steps.date.outputs.date }}-test.json
destination_repo: "fga-eps-mds/2021.1-Oraculo"
destination_branch: "master"
destination_folder: "analytics-raw-data"
user_email: ${{ secrets.USER_EMAIL }}
user_name: ${{ secrets.USER_NAME }}
commit_message: "Adding test file - fga-eps-mds-2021_1-Oraculo-FrontEnd-${{ steps.date.outputs.date }}-test.json"

0 comments on commit aaaa3a1

Please sign in to comment.