mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-22 16:40:48 +00:00
Merge pull request #20 from cisagov/improvement/actions
Replace Travis-CI with GitHub actions
This commit is contained in:
commit
12b91c4850
4 changed files with 35 additions and 26 deletions
25
.github/workflows/build.yml
vendored
Normal file
25
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
name: build
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install --upgrade -r requirements-test.txt
|
||||||
|
|
||||||
|
- name: Run pre-commit on all files
|
||||||
|
run: pre-commit run --all-files
|
|
@ -56,11 +56,12 @@ repos:
|
||||||
rev: 19.3b0
|
rev: 19.3b0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
- repo: https://github.com/ansible/ansible-lint.git
|
# Disabled until: https://github.com/ansible/ansible-lint/issues/590
|
||||||
rev: v4.1.1a0
|
# - repo: https://github.com/ansible/ansible-lint.git
|
||||||
hooks:
|
# rev: v4.1.1a0
|
||||||
- id: ansible-lint
|
# hooks:
|
||||||
# files: molecule/default/playbook.yml
|
# - id: ansible-lint
|
||||||
|
# # files: molecule/default/playbook.yml
|
||||||
- repo: https://github.com/antonbabenko/pre-commit-terraform.git
|
- repo: https://github.com/antonbabenko/pre-commit-terraform.git
|
||||||
rev: v1.12.0
|
rev: v1.12.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|
17
.travis.yml
17
.travis.yml
|
@ -1,17 +0,0 @@
|
||||||
---
|
|
||||||
dist: xenial
|
|
||||||
language: python
|
|
||||||
python: 3.7
|
|
||||||
# pre-commit hooks can use Docker, so we should go ahead and enable it
|
|
||||||
services: docker
|
|
||||||
|
|
||||||
# Cache pip packages and pre-commit plugins to speed up builds
|
|
||||||
cache:
|
|
||||||
pip: true
|
|
||||||
directories:
|
|
||||||
- $HOME/.cache/pre-commit
|
|
||||||
|
|
||||||
install:
|
|
||||||
- pip install --upgrade -r requirements-test.txt
|
|
||||||
script:
|
|
||||||
- pre-commit run --all-files
|
|
|
@ -1,13 +1,13 @@
|
||||||
# skeleton-generic #
|
# skeleton-generic #
|
||||||
|
|
||||||
[![Build Status](https://travis-ci.com/cisagov/skeleton-generic.svg?branch=develop)](https://travis-ci.com/cisagov/skeleton-generic)
|
[![GitHub Build Status](https://github.com/cisagov/skeleton-generic/workflows/build/badge.svg)](https://github.com/cisagov/skeleton-generic/actions)
|
||||||
|
|
||||||
This is a generic skeleton project that can be used to quickly get a
|
This is a generic skeleton project that can be used to quickly get a
|
||||||
new [cisagov](https://github.com/cisagov) GitHub project started.
|
new [cisagov](https://github.com/cisagov) GitHub project started.
|
||||||
This skeleton project contains [licensing information](LICENSE), as
|
This skeleton project contains [licensing information](LICENSE), as
|
||||||
well as [pre-commit hooks](https://pre-commit.com) and a [Travis
|
well as [pre-commit hooks](https://pre-commit.com) and
|
||||||
CI](https://travis-ci.com) configuration appropriate for the major
|
[GitHub Actions](https://github.com/features/actions) configurations
|
||||||
languages that we use.
|
appropriate for the major languages that we use.
|
||||||
|
|
||||||
In many cases you will instead want to use one of the more specific
|
In many cases you will instead want to use one of the more specific
|
||||||
skeleton projects derived from this one.
|
skeleton projects derived from this one.
|
||||||
|
|
Loading…
Reference in a new issue