Merge pull request #51 from AmadeusITGroup/issue50-draft-generation #157
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: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
# This enables publishing the dependency graph | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
cache: 'sbt' | |
- name: Run tests and generate coverage report | |
run: sbt coverageOn scripted coverageReport | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: target/scala-2.12/sbt-1.0/coverage-report/cobertura.xml | |
verbose: true | |
# This step uploads information to the GitHub dependency graph and unlocks Dependabot alerts for the repository | |
- name: Upload dependency graph | |
uses: scalacenter/sbt-dependency-submission@64084844d2b0a9b6c3765f33acde2fbe3f5ae7d3 # v3.1.0 | |
if: github.event_name != 'pull_request' |