diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..65fdd8c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: Unit tests +on: + # Trigger the workflow on a pull request,, or when committing + # 'main' branch + pull_request: + push: + branches: + - main + +jobs: + run-unit-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # Retrieve dependencies and set up the test environment + - run: make build + + # Run the tests + - run: make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b73f308..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -sudo: required - -services: - - docker - -before_install: - - make build - -script: - - make test diff --git a/README.md b/README.md index 72fb8aa..56d9169 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,6 @@ Matrix Content Scanner A Web service for scanning media hosted on a [Matrix](https://matrix.org) content repository. -[![Build Status](https://travis-ci.org/matrix-org/matrix-content-scanner.svg?branch=master)](https://travis-ci.org/matrix-org/matrix-content-scanner) - # Introduction MCS allows for arbitrary scanning of content hosted on Matrix. When a Matrix client requests media