-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from essentialkaos/develop
Migration from Travis CI to GitHub Actions
- Loading branch information
Showing
3 changed files
with
64 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters