Update fetch patch notes to use json endpoint #242
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: Continuous integration | |
on: | |
push: | |
branches: | |
- "*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# Disabling shallow clone is recommended for improving relevancy of reporting | |
fetch-depth: 0 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.0.405' | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
# The Java version to make available on the path. Takes a whole or semver Java version, or 1.x syntax (e.g. 1.8 => Java 8.x). Early access versions can be specified in the form of e.g. 14-ea, 14.0.0-ea, or 14.0.0-ea.28 | |
java-version: 11 | |
# The package type (jre, jdk, jdk+fx) | |
java-package: jdk # optional, default is jdk | |
# The architecture (x86, x64) of the package. | |
architecture: x64 # optional, default is x64 | |
- name: Install SonarCloud dotnet | |
if: ${{ false }} | |
run: dotnet tool install --global dotnet-sonarscanner | |
- name: Start SonarCloud analysis | |
if: ${{ false }} | |
run: dotnet sonarscanner begin -k:FAForever_faf-qai -d:sonar.host.url="https://sonarcloud.io" -o:faforever -d:sonar.login=${{secrets.SONAR_TOKEN}} -d:sonar.branch.name=${GITHUB_REF##*/} -v:${GITHUB_RUN_NUMBER} -d:sonar.cs.opencover.reportsPaths=./testresults/*/coverage.opencover.xml | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Test | |
run: dotnet test --no-restore --verbosity normal --collect:"XPlat Code Coverage" --results-directory:./testresults -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | |
- name: End SonarCloud analysis | |
if: ${{ false }} | |
run: dotnet sonarscanner end -d:sonar.login=${{secrets.SONAR_TOKEN}} | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Build and push Docker images | |
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: faforever/faf-qai | |
tag_with_ref: true |