Skip to content

Commit

Permalink
Merge pull request #29 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Migration from Travis CI to GitHub Actions
  • Loading branch information
andyone authored Nov 19, 2020
2 parents f115641 + e6ea676 commit baf90b6
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 27 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI

on:
push:
branches: [master, develop]
pull_request:
branches: [master]

jobs:
Shellcheck:
name: Shellcheck
runs-on: ubuntu-latest

env:
SHELLCHECK_VERSION: 0.7.1

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Shellcheck
run: |
wget https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION}/shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz
tar xf shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz
mv shellcheck-v${SHELLCHECK_VERSION} shellcheck-latest
- name: Print Shellcheck version info
run: ./shellcheck-latest/shellcheck --version

- name: Check scripts
run: |
bash -c 'shopt -s globstar; ./shellcheck-latest/shellcheck SOURCES/web-utils'
Perfecto:
name: Perfecto
runs-on: ubuntu-latest

steps:
- name: Code checkout
uses: actions/checkout@v2

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Run Perfecto docker image
uses: docker://essentialkaos/perfecto:slim
with:
args: --version

- name: Install perfecto-docker
run: |
wget https://kaos.sh/perfecto/perfecto-docker
chmod +x perfecto-docker
- name: Run Perfecto check
env:
IMAGE: essentialkaos/perfecto:slim
run: ./perfecto-docker web-utils.spec
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p align="center"><a href="#readme"><img src="https://gh.kaos.st/web-utils.svg"/></a></p>

<p align="center">
<a href="https://travis-ci.com/essentialkaos/web-utils"><img src="https://travis-ci.com/essentialkaos/web-utils.svg"></a>
<a href="https://github.com/essentialkaos/web-utils/actions"><img src="https://github.com/essentialkaos/web-utils/workflows/CI/badge.svg" alt="GitHub Actions Status" /></a>
<a href="#license"><img src="https://gh.kaos.st/apache2.svg"></a>
</p>

Expand Down Expand Up @@ -85,8 +85,8 @@ Examples

| Branch | Status |
|--------|--------|
| `master` | [![Build Status](https://travis-ci.org/essentialkaos/web-utils.svg?branch=master)](https://travis-ci.org/essentialkaos/web-utils) |
| `develop` | [![Build Status](https://travis-ci.org/essentialkaos/web-utils.svg?branch=develop)](https://travis-ci.org/essentialkaos/web-utils) |
| `master` | [![CI](https://github.com/essentialkaos/web-utils/workflows/CI/badge.svg?branch=master)](https://github.com/essentialkaos/web-utils/actions) |
| `develop` | [![CI](https://github.com/essentialkaos/web-utils/workflows/CI/badge.svg?branch=develop)](https://github.com/essentialkaos/web-utils/actions) |

### License

Expand Down

0 comments on commit baf90b6

Please sign in to comment.