From cf1b72f0fddb16a153a3a6fadc0fec9b33ae1141 Mon Sep 17 00:00:00 2001 From: Felddy Date: Fri, 18 Oct 2019 10:39:22 -0400 Subject: [PATCH] Replace Travis-CI with GitHub actions. --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 18 ------------------ README.md | 4 +--- 3 files changed, 27 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b3e5b2f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +--- +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 + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 95a6965..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +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 - - molecule test diff --git a/README.md b/README.md index caaebd6..f4948a4 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # ansible-role-oracle-java-11 # -[![Build Status](https://travis-ci.com/cisagov/ansible-role-oracle-java-11.svg?branch=develop)](https://travis-ci.com/cisagov/ansible-role-oracle-java-11) -[![Total alerts](https://img.shields.io/lgtm/alerts/g/cisagov/ansible-role-oracle-java-11.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/cisagov/ansible-role-oracle-java-11/alerts/) -[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/cisagov/ansible-role-oracle-java-11.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/cisagov/ansible-role-oracle-java-11/context:python) +[![GitHub Build Status](https://github.com/cisagov/ansible-role-oracle-java/workflows/build/badge.svg)](https://github.com/cisagov/ansible-role-oracle-java/actions) An Ansible role for installing [Oracle Java 11](https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html).