mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
fix superlinter dependencies & others
This commit is contained in:
parent
737e0faef7
commit
9402ae2abb
1 changed files with 37 additions and 16 deletions
53
.github/workflows/linter.yml
vendored
53
.github/workflows/linter.yml
vendored
|
@ -1,34 +1,56 @@
|
||||||
# This is a basic workflow to help you get started with Actions
|
###########################
|
||||||
|
###########################
|
||||||
|
## Linter GitHub Actions ##
|
||||||
|
###########################
|
||||||
|
###########################
|
||||||
|
|
||||||
name: linter
|
name: Lint Code Base
|
||||||
|
|
||||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
#
|
||||||
# events but only for the master branch
|
# Documentation:
|
||||||
|
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
||||||
|
#
|
||||||
|
|
||||||
|
#############################
|
||||||
|
# Start the job on all push #
|
||||||
|
#############################
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ '*' ]
|
branches: [master]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches-ignore: [master]
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
||||||
|
###############
|
||||||
|
# Set the Job #
|
||||||
|
###############
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
|
||||||
build:
|
build:
|
||||||
# The type of runner that the job will run on
|
name: Lint Code Base
|
||||||
|
# Set the agent to run on
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
##################
|
||||||
|
# Load all steps #
|
||||||
|
###################
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
##########################
|
||||||
- uses: actions/checkout@master
|
# Checkout the code base #
|
||||||
|
##########################
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
# Full git history is needed to get a proper list of changed files within `super-linter`
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: install libvirt-dev
|
- name: Install Required packages
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y libvirt-dev
|
sudo apt-get install -y libvirt-dev python3-lxml zlib1g-dev libxslt1-dev
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
|
@ -39,8 +61,8 @@ jobs:
|
||||||
- name: Lint Code Base
|
- name: Lint Code Base
|
||||||
uses: docker://github/super-linter:latest
|
uses: docker://github/super-linter:latest
|
||||||
env:
|
env:
|
||||||
FILTER_REGEX_EXCLUDE: .*[static|scss]/.*
|
|
||||||
DEFAULT_BRANCH: master
|
DEFAULT_BRANCH: master
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
VALIDATE_ANSIBLE: false
|
VALIDATE_ANSIBLE: false
|
||||||
VALIDATE_CLOJURE: false
|
VALIDATE_CLOJURE: false
|
||||||
VALIDATE_COFFEE: false
|
VALIDATE_COFFEE: false
|
||||||
|
@ -56,4 +78,3 @@ jobs:
|
||||||
VALIDATE_TSX: false
|
VALIDATE_TSX: false
|
||||||
VALIDATE_TERRAFORM: false
|
VALIDATE_TERRAFORM: false
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue