From 92920fe8da9b7e720e537de2d54a49550b224d60 Mon Sep 17 00:00:00 2001 From: roschaefer Date: Mon, 8 Jun 2020 17:17:02 +0200 Subject: [PATCH] Add CI workflow --- .github/workflows/ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..3967bfa64 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +name: CI + +on: [push] + +jobs: + build: + name: Continuous Integration + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Check translation files + run: | + scripts/translations/sort.sh + scripts/translations/missing-keys.sh + + - name: Build neo4j image + uses: docker/build-push-action@v1.1.0 + with: + repository: humanconnection/neo4j + tags: latest + path: neo4j/ + push: false + - name: Build backend base image + uses: docker/build-push-action@v1.1.0 + with: + repository: humanconnection/backend + tags: build-and-test + target: build-and-test + path: backend/ + push: false + - name: Build webapp base image + uses: docker/build-push-action@v1.1.0 + with: + repository: humanconnection/webapp + tags: build-and-test + target: build-and-test + path: webapp/ + push: false + + - name: Lint backend + run: docker run --rm humanconnection/backend:latest yarn run lint + - name: Lint webapp + run: docker run --rm humanconnection/webapp:latest yarn run lint +