Github CI to Gitlab CI

Hi .I need to make code coverage for my projects.I use Gitlab CI for automation and my projects are on .NET.The point is that I have yml file for this but it is on github.How can I translate it like gitlab-ci.yml.Here is the code.
pool:
name: Azure Pipelines
variables:
BuildConfiguration: ‘Release’
ShortVersion: ‘1.0.0’
steps:
- task: SonarSource.sonarcloud.14d9cde6-c1da-4d55-aa01–2965cd301255.SonarCloudPrepare@1
displayName: ‘Prepare analysis on SonarCloud’
inputs:
SonarCloud: ‘My Project’
organization: MyOrganisation
projectKey: ‘testproject’
projectName: ‘My Project’
extraProperties: |
sonar.exclusions=/obj/,/*.dll
sonar.cs.xunit.reportsPaths={Agent.TempDirectory}/**/XUnit.TestResults.xml sonar.cs.opencover.reportsPaths={Agent.TempDirectory}/
/opencoverCoverage.xml
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: ‘/*.csproj’
noCache: true
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: ‘
/.csproj’
arguments: ‘ — configuration (BuildConfiguration) /property:Version=(ShortVersion) — no-restore’
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: ‘**/
.Tests.csproj’
arguments: '–configuration (BuildConfiguration) --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=(Agent.TempDirectory)/coverage/ /p:MergeWith=(Agent.TempDirectory)/coverage/ --collect "Code coverage"' - task: PublishTestResults@2 displayName: "Publish Test Results" inputs: testResultsFormat: VSTest testResultsFiles: "(Agent.TempDirectory)/**.*trx"
mergeTestResults: true
condition: succeededOrFailed()
- task: SonarSource.sonarcloud.ce096e50–6155–4de8–8800–4221aaeed4a1.SonarCloudAnalyze@1
displayName: ‘Run Code Analysis’
- task: SonarSource.sonarcloud.38b27399-a642–40af-bb7d-9971f69712e8.SonarCloudPublish@1
displayName: ‘Publish Quality Gate Result’