mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Add CI workflow
This commit is contained in:
parent
3fa0723eac
commit
92920fe8da
46
.github/workflows/ci.yml
vendored
Normal file
46
.github/workflows/ci.yml
vendored
Normal file
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user