fix cicd and add cicd on PR

This commit is contained in:
Mickael PAPAMICA Asseline
2022-10-16 15:41:55 +02:00
parent 4c28f95547
commit 2e54761e48
3 changed files with 21 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
<a href="https://github.com/PAPAMICA/docker-compose-collection#utilisation"><img src="https://img.shields.io/badge/How_to_use-%2341454A.svg?style=for-the-badge&logo=target&logoColor=white"> </a>
<a href="https://github.com/PAPAMICA/docker-compose-collection#add-new-docker-compose-file"><img src="https://img.shields.io/badge/Add_new_service-%2341454A.svg?style=for-the-badge&logo=target&logoColor=white"> </a>
<br />
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/PAPAMICA/docker-compose-collection/CI?label=Files%20generating&logo=files&logoColor=white&style=for-the-badge">
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/PAPAMICA/docker-compose-collection/master?label=Files%20generating&logo=files&logoColor=white&style=for-the-badge">
<br />
<a href="https://www.docker.com/"><img src="https://img.shields.io/badge/docker-%232496ED.svg?style=for-the-badge&logo=docker&logoColor=white"> </a>
<a href="https://www.portainer.io/"><img src="https://img.shields.io/badge/portainer-%2313BEF9.svg?style=for-the-badge&logo=portainer&logoColor=white"> </a>

19
.github/workflows/check-yaml.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: pull_request
on:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
check-yaml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install yamllint
run: pip install yamllint
- name: Lint YAML files
run: yamllint --format github -d .github/workflows/conf_yaml ./composes-files/*

View File

@@ -1,4 +1,4 @@
name: CI
name: master
on:
push:
branches: [ master ]