diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5701439 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ + +name: Build + +on: + push: + branches: + - master + pull_request: + schedule: + - cron: '0 0 * * *' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + with: + submodules: recursive + + - name: Install environment + run: | + docker pull opendxl/opendxl-environment + docker run -d -p 127.0.0.1:8000:8000 opendxl/opendxl-environment + docker ps -a + + - name: Execute CI + run: | + wget http://localhost:8000 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c3848c0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -sudo: false - -language: node_js - -services: - - docker - -node_js: - - "node" - -install: - - docker pull opendxl/opendxl-environment - - docker run -d -p 127.0.0.1:8000:8000 opendxl/opendxl-environment - - docker ps -a - -script: - - wget http://localhost:8000 diff --git a/README.md b/README.md index 93dc220..ce41059 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/opendxl/opendxl-environment.png?branch=master)](https://travis-ci.org/opendxl/opendxl-environment) +[![Actions Status](https://github.com/opendxl/opendxl-environment/workflows/Build/badge.svg)](https://github.com/opendxl/opendxl-environment/actions) [![Docker Build Status](https://img.shields.io/docker/build/opendxl/opendxl-environment.svg)](https://hub.docker.com/r/opendxl/opendxl-environment/) # OpenDXL Environment