Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/906 - Replace travis with github actions #907

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: org.geppetto.frontend workflow

on:
push:
pull_request:
workflow_dispatch:

jobs:
maven-install:
runs-on: ubuntu-latest
steps:
- uses : actions/[email protected]
- name: Set global bariable with current branch name
shell: bash
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
id: git_branch

- name : Checkout org.geppetto.model
uses : actions/[email protected]
with :
repository: openworm/org.geppetto.model.git
path : ./org.geppetto.model
ref: development
- name : Build org.geppetto.model
run : |
cd ./org.geppetto.model
# Checkout current branch that activated the git actions workflow, if fails checkout development
git checkout ${{ steps.git_branch.outputs.branch }} || git checkout development
mvn -e clean install
cd ..

- name : Checkout org.geppetto.core
uses : actions/[email protected]
with :
repository: openworm/org.geppetto.core.git
path : ./org.geppetto.core
ref: development
- name : Build org.geppetto.core
run : |
cd ./org.geppetto.core
# Checkout current branch that activated the git actions workflow, if fails checkout development
git checkout ${{ steps.git_branch.outputs.branch }} || git checkout development
mvn -e clean install
cd ..

- name : Checkout org.geppetto.simulation
uses : actions/[email protected]
with :
repository: openworm/org.geppetto.simulation.git
path : ./org.geppetto.simulation
ref: development
- name : Build org.geppetto.simulation
run : |
cd ./org.geppetto.simulation
# Checkout current branch that activated the git actions workflow, if fails checkout development
git checkout ${{ steps.git_branch.outputs.branch }} || git checkout development
mvn -e clean install
cd ..

- name : Checkout geppetto-application
uses : actions/[email protected]
with :
repository: openworm/geppetto-application.git
path : ./src/main/webapp
ref: development
- name : Build geppetto-application
run : |
cd ./src/main/webapp
# Checkout current branch that activated the git actions workflow, if fails checkout development
git checkout ${{ steps.git_branch.outputs.branch }} || git checkout development
git clone https://github.com/openworm/geppetto-client.git
cd geppetto-client
git checkout ${{ steps.git_branch.outputs.branch }} || git checkout development
cd ../../../../..

- name : Build org.geppetto.frontend
run : |
mvn -e clean install
cd ..
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.