Skip to content

Bump symfony/mailjet-mailer from 6.2.7 to 6.3.0 #353

Bump symfony/mailjet-mailer from 6.2.7 to 6.3.0

Bump symfony/mailjet-mailer from 6.2.7 to 6.3.0 #353

name: Run the Bitcoin-DCA automated tests every time some code changes
on:
push:
jobs:
run-tests:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build the Docker image and execute the testsuite
uses: docker/build-push-action@v4
with:
context: .
push: false
target: testing_stage
load: true
tags: jorijn/bitcoin-dca:ci
cache-from: type=registry,ref=jorijn/bitcoin-dca:latest
- name: Extract the test logging artifacts from the container that was built
if: success() || failure()
run: |
docker run --rm --entrypoint= -v ${GITHUB_WORKSPACE}:/app/ jorijn/bitcoin-dca:ci sh -c "cp /tmp/tests_*.xml /app/"
sed -i "s/\/app\//\/github\/workspace\//g" tests_coverage.xml tests_log.xml
- name: Upload logging artifacts
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: test_coverage_and_logging
path: |
tests_coverage.xml
tests_log.xml
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure()
with:
report_paths: 'tests_*.xml'
sonarcloud:
runs-on: ubuntu-latest
needs: run-tests
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: test_coverage_and_logging
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@v1.9
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}