diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..5114cea0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +name: test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + name: test + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - run: make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 02edb386..00000000 --- a/.travis.yml +++ /dev/null @@ -1,37 +0,0 @@ -language: minimal - -dist: bionic - -services: -- docker - -# docker >= 19.03 is required for docker buildx, so it is upgraded -before_install: -- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -- sudo apt update -y -- sudo apt install --only-upgrade docker-ce -y - -script: -- make test - -deploy: -- provider: script - script: make release - on: - repo: aler9/rtsp-simple-server - tags: true - -- provider: releases - api_key: $GITHUB_API_KEY - skip_cleanup: true - file_glob: true - file: release/* - on: - repo: aler9/rtsp-simple-server - tags: true - -- provider: script - script: docker login -u aler9 -p $DOCKER_PASSWORD && make dockerhub - on: - repo: aler9/rtsp-simple-server - tags: true diff --git a/Makefile b/Makefile index 537560d9..a8af647f 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ export DOCKERFILE_TEST test: echo "$$DOCKERFILE_TEST" | docker build -q . -f - -t temp - docker run --rm -it \ + docker run --rm \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ temp \ make test-nodocker diff --git a/README.md b/README.md index 78147a33..954e542f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # rtsp-simple-server -[![Build Status](https://travis-ci.com/aler9/rtsp-simple-server.svg?branch=master)](https://travis-ci.com/aler9/rtsp-simple-server) +[![Test](https://github.com/aler9/rtsp-simple-server/workflows/test/badge.svg)](https://github.com/aler9/rtsp-simple-server/actions) [![Go Report Card](https://goreportcard.com/badge/github.com/aler9/rtsp-simple-server)](https://goreportcard.com/report/github.com/aler9/rtsp-simple-server) [![Docker Hub](https://img.shields.io/badge/docker-aler9%2Frtsp--simple--server-blue)](https://hub.docker.com/r/aler9/rtsp-simple-server)