aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSilvio Fricke2021-05-19 13:58:31 +0200
committerSilvio Fricke2021-05-19 13:58:31 +0200
commit4a87ee94b527c6e55c53de9ec0ac20fe88ddc3d8 (patch)
tree817911d8aacda092de0c6b657299e251f218d1e7 /.github
parent01dce98eda23e47d8c45ff6b526c8eeda318b116 (diff)
downloadlanguagetool-4a87ee94b527c6e55c53de9ec0ac20fe88ddc3d8.tar.gz
github: add actionfile for tests
Closes #19 Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..3d54321
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,45 @@
+
+name: Create and Test Dockerimage for silvio/docker-languagetool
+
+on:
+ push:
+ branches: [ master ]
+
+ workflow_dispatch:
+
+jobs:
+ docker:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Set environment variables
+ run: |
+ make envout >> ${GITHUB_ENV}
+
+ - name: show env debug
+ run: |
+ echo $VERSION
+
+ - name: Prepare system
+ run: |
+ make prepare
+
+ - name: Build Docker image
+ run: |
+ make build
+
+ - name: Run tests
+ run: |
+ make test
+
+ - name: Login to DockerHub
+ if: github.event_name != 'pull_request'
+ uses: docker/login-action@v1
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_PASSWORD }}
+ - name: Make tag
+ run: |
+ make tag