Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/italia/publiccode-parser-gitlab-ci

GitLab CI validation of publiccode.yml files
https://github.com/italia/publiccode-parser-gitlab-ci

Last synced: about 4 hours ago
JSON representation

GitLab CI validation of publiccode.yml files

Awesome Lists containing this project

README

        

# GitLab CI validation of publiccode.yml files

[![License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/italia/publiccode-parser-gitlab-ci/blob/master/LICENSE)

## Usage

This snippet can be included in GitLab CI to validate
[`publiccode.yml`](https://github.com/italia/publiccode.yml)
files using [publiccode-parser-go](https://github.com/italia/publiccode-parser-go).

You can use it in your workflow to check if `publiccode.yml` in your repo is valid.

### Examples

#### Run automatically in the "`test`" stage (simplest configuration)

```yml
# .gitlab-ci.yml

include:
- https://raw.githubusercontent.com/italia/publiccode-parser-gitlab-ci/main/publiccode-validation.yml
```

#### Run in a custom stage

```yml
# .gitlab-ci.yml

include:
- https://raw.githubusercontent.com/italia/publiccode-parser-gitlab-ci/main/publiccode-validation.yml

stages:
- custom_stage

publiccode-parser:
stage: custom_stage
```