From 727f8768bd548eed6744f2bedee7be697ee4b214 Mon Sep 17 00:00:00 2001 From: actionless Date: Thu, 1 Apr 2021 19:06:02 +0200 Subject: [PATCH] chore(ci): switch from travis to github actions --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ .travis.yml | 13 ------------- 2 files changed, 23 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..84e79fd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: Code Style + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + + - uses: actions/checkout@v2 + + - name: switch base docker image + run: sed -i -e 's|FROM archlinux/base|FROM actionless/pikaur|' Dockerfile + + - name: build docker image + run: docker image build ./ -t oomoxify + + - name: run tests in docker + run: docker run --entrypoint ./shellcheck.sh oomoxify:latest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 52f4b61..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: minimal - -dist: bionic - -services: - - docker - -install: - - sed -i -e 's|FROM archlinux/base|FROM actionless/pikaur|' Dockerfile - - docker image build ./ -t oomoxify - -script: - - docker run --entrypoint ./shellcheck.sh oomoxify:latest