Sha256: 2c92df44c291c1ee7e2561ffa83cde2043283f8c3a858fd298ab80b6307384bb

Contents?: true

Size: 975 Bytes

Versions: 3

Compression:

Stored size: 975 Bytes

Contents

  
name: Build
on:
  push:
    branches:
      - master
  pull_request:
    types: [opened, synchronize, reopened]
jobs:
  sonarcloud:
    name: SonarCloud
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0  # Shallow clones should be disabled for a better relevancy of analysis

      - name: Setup Ruby
        uses: ruby/setup-ruby@v1.61.1
        with:
          ruby-version: 2.7

      - name: Install the knife plugin
        run: bundle

      - name: Run the tests
        run: rspec
      
      - name: Update file paths in coverage.json
        run: sed -i 's+/home/runner/work/knife-ionos-cloud/knife-ionos-cloud+/github/workspace+g' coverage/coverage.json

      - name: SonarCloud Scan
        uses: SonarSource/sonarcloud-github-action@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}  # Needed to get PR information, if any
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
knife-ionoscloud-6.2.0 .github/workflows/build.yml
knife-ionoscloud-6.1.2 .github/workflows/build.yml
knife-ionoscloud-6.1.1 .github/workflows/build.yml