From dbab80730960e748dca86064ab328a9d536f9609 Mon Sep 17 00:00:00 2001 From: Josh Humphries Date: Wed, 30 Aug 2023 09:33:41 +0100 Subject: [PATCH] build: add github action stuff --- .github/SUPPORT.md | 9 ++++++ .github/nhm-logo.svg | 58 ++++++++++++++++++++++++++++++++++++++ .github/workflows/main.yml | 21 ++++++++++++++ 3 files changed, 88 insertions(+) create mode 100644 .github/SUPPORT.md create mode 100644 .github/nhm-logo.svg create mode 100644 .github/workflows/main.yml diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md new file mode 100644 index 0000000..2d7a3f9 --- /dev/null +++ b/.github/SUPPORT.md @@ -0,0 +1,9 @@ +# Support + +## Documentation +- [data importer documentation](https://data-importer.readthedocs.io) + +## Contact Us +- [Gitter](https://gitter.im/nhm-data-portal/lobby) +- [Email _data@nhm.ac.uk_](mailto:data@nhm.ac.uk) +- [Twitter](https://twitter.com/nhm_data) diff --git a/.github/nhm-logo.svg b/.github/nhm-logo.svg new file mode 100644 index 0000000..0fd9545 --- /dev/null +++ b/.github/nhm-logo.svg @@ -0,0 +1,58 @@ + + + +image/svg+xml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0da6ea0 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: Tests + +on: + push: + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout source code + uses: actions/checkout@v3 + + - name: Build images + run: docker-compose build + + - name: Run tests + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + run: docker-compose run -e COVERALLS_REPO_TOKEN test