Skip to content

Commit

Permalink
Merge pull request #20 from cisagov/improvement/actions
Browse files Browse the repository at this point in the history
Replace Travis-CI with GitHub actions
  • Loading branch information
felddy authored Oct 18, 2019
2 parents b189690 + b11e39a commit 12b91c4
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 26 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@ repos:
rev: 19.3b0
hooks:
- id: black
- repo: https://github.com/ansible/ansible-lint.git
rev: v4.1.1a0
hooks:
- id: ansible-lint
# files: molecule/default/playbook.yml
# Disabled until: https://github.com/ansible/ansible-lint/issues/590
# - repo: https://github.com/ansible/ansible-lint.git
# rev: v4.1.1a0
# hooks:
# - id: ansible-lint
# # files: molecule/default/playbook.yml
- repo: https://github.com/antonbabenko/pre-commit-terraform.git
rev: v1.12.0
hooks:
Expand Down
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 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
new [cisagov](https://github.com/cisagov) GitHub project started.
This skeleton project contains [licensing information](LICENSE), as
well as [pre-commit hooks](https://pre-commit.com) and a [Travis
CI](https://travis-ci.com) configuration appropriate for the major
languages that we use.
well as [pre-commit hooks](https://pre-commit.com) and
[GitHub Actions](https://github.com/features/actions) configurations
appropriate for the major languages that we use.

In many cases you will instead want to use one of the more specific
skeleton projects derived from this one.
Expand Down

0 comments on commit 12b91c4

Please sign in to comment.