Merge branch 'ci-github-actions-hecat'
This commit is contained in:
commit
85940786f0
19
.github/workflows/ci.yml
vendored
Normal file
19
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- run: make import
|
||||||
|
- run: make awesome_lint
|
||||||
|
- run: make url_check
|
8
.hecat/awesome-lint.yml
Normal file
8
.hecat/awesome-lint.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
steps:
|
||||||
|
- name: check data against awesome-sysadmin guidelines
|
||||||
|
module: processors/awesome_lint
|
||||||
|
module_options:
|
||||||
|
source_directory: ./
|
||||||
|
licenses_files:
|
||||||
|
- licenses.yml
|
||||||
|
- licenses-nonfree.yml
|
6
.hecat/import.yml
Normal file
6
.hecat/import.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
steps:
|
||||||
|
- name: import awesome-sysadmin README.md to YAML
|
||||||
|
module: importers/markdown_awesome
|
||||||
|
module_options:
|
||||||
|
source_file: ./README.md
|
||||||
|
output_directory: ./
|
11
.hecat/url-check.yml
Normal file
11
.hecat/url-check.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
steps:
|
||||||
|
- name: check URLs
|
||||||
|
module: processors/url_check
|
||||||
|
module_options:
|
||||||
|
source_directories:
|
||||||
|
- software
|
||||||
|
- tags
|
||||||
|
source_files:
|
||||||
|
- licenses.yml
|
||||||
|
errors_are_fatal: True
|
||||||
|
exclude_regex: []
|
@ -1,7 +0,0 @@
|
|||||||
language: ruby
|
|
||||||
rvm:
|
|
||||||
- 2.2
|
|
||||||
before_script:
|
|
||||||
- gem install awesome_bot
|
|
||||||
script:
|
|
||||||
- awesome_bot README.md --allow-dupe --allow-redirect --white-list bestpractical.com/rt,mogilefs,harding,archipel,linuxcontainers,spiceworks
|
|
29
Makefile
Normal file
29
Makefile
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
SHELL := /bin/bash
|
||||||
|
|
||||||
|
.PHONY: install # install build tools in a virtualenv
|
||||||
|
install:
|
||||||
|
python3 -m venv .venv
|
||||||
|
source .venv/bin/activate && \
|
||||||
|
pip3 install wheel && \
|
||||||
|
pip3 install --force git+https://github.com/nodiscc/hecat.git@master
|
||||||
|
|
||||||
|
.PHONY: import # import data from original list at https://github.com/awesome-foss/awesome-sysadmin
|
||||||
|
import: install
|
||||||
|
rm -rf tags/ software/ platforms/
|
||||||
|
mkdir -p tags/ software/ platforms/
|
||||||
|
source .venv/bin/activate && \
|
||||||
|
hecat --config .hecat/import.yml
|
||||||
|
|
||||||
|
.PHONY: awesome_lint # check data against awesome-sysadmin guidelines
|
||||||
|
awesome_lint: install
|
||||||
|
source .venv/bin/activate && \
|
||||||
|
hecat --config .hecat/awesome-lint.yml
|
||||||
|
|
||||||
|
.PHONY: url_check # check URLs for dead links or other connection problems
|
||||||
|
url_check: install
|
||||||
|
source .venv/bin/activate && \
|
||||||
|
hecat --config .hecat/url-check.yml
|
||||||
|
|
||||||
|
.PHONY: help # generate list of targets with descriptions
|
||||||
|
help:
|
||||||
|
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20
|
Loading…
Reference in New Issue
Block a user