Skip to content

feat: enable multiple software repositories for one software entry #47

feat: enable multiple software repositories for one software entry

feat: enable multiple software repositories for one software entry #47

# SPDX-FileCopyrightText: 2024 - 2025 Ewan Cahen (Netherlands eScience Center) <[email protected]>
# SPDX-FileCopyrightText: 2024 - 2025 Netherlands eScience Center
#
# SPDX-License-Identifier: Apache-2.0
name: codemeta code quality scan and build
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "codemeta/**"
pull_request:
paths:
- "codemeta/**"
jobs:
codemeta-scan-build:
runs-on: ubuntu-22.04
strategy:
matrix:
go-version: [ '1.22.5' ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: "Build application with Go"
uses: actions/setup-go@v5
with:
go-version: '1.22.5'
- run: |
go build -v -o ./app
working-directory: codemeta/src
- run: |
go build -v -o ./scraper-4tu codemeta/scrapers
working-directory: codemeta/src
- name: SonarCloud Scan codemeta
uses: SonarSource/sonarqube-scan-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: codemeta