2019-11-21 08:43:00 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# Job Name
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
name: Lint
|
|
|
|
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# When to run
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
on:
|
|
|
|
# Runs on Pull Requests
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
# Runs on master Branch and Tags
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# What to run
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
jobs:
|
|
|
|
- tests
|
|
|
|
|
|
|
|
name: "[Lint ${{ matrix.jobs }}]"
|
|
|
|
steps:
|
|
|
|
|
|
|
|
# ------------------------------------------------------------
|
|
|
|
# Checkout repository
|
|
|
|
# ------------------------------------------------------------
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd .tests/
|
|
|
|
make lint-tests
|
2020-11-12 13:19:49 +00:00
|
|
|
|
|
|
|
- name: Check configuration
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cp env-example .env
|
|
|
|
./check-config.sh
|