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

GitHub Actions #9

Merged
merged 5 commits into from
Dec 19, 2020
Merged
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
66 changes: 66 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: CI

on:
push:
branches: [master]
create:
tags:
pull_request:
schedule:
- cron: '35 2 * * *' # run nightly at 2:35 am

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml', '**/MANIFEST.MF') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build and Verify
uses: GabrielBB/xvfb-action@v1
with:
run: >
./mvnw -B clean verify
-Dstyle.color=always
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
-Dorg.slf4j.simpleLogger.log.org.eclipse.tycho.core.resolver.DefaultTychoResolver=warn
-Dorg.slf4j.simpleLogger.log.org.eclipse.tycho.osgi.configuration.MavenContextConfigurator=warn
-Dorg.slf4j.simpleLogger.log.org.eclipse.sisu.equinox.launching.internal.DefaultEquinoxLauncher=warn
-Dorg.slf4j.simpleLogger.log.org.eclipse.xtext.maven.XtextGenerateMojo=warn
env:
MAVEN_OPTS: -Djansi.force=true
- name: Publish Nightly Update Site
if: github.ref == 'refs/heads/master' && github.repository_owner == 'kit-sdq'
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.UPDATE_SITE_DEPLOY_KEY }}
external_repository: kit-sdq/updatesite
destination_dir: nightly/metamodels/demo
publish_dir: releng/edu.kit.ipd.sdq.metamodels.demo.updatesite/target/repository
publish_branch: master
- name: Determine Release Version
if: startsWith(github.ref, 'refs/tags/releases/') && github.repository_owner == 'kit-sdq'
id: releaseVersion
uses: little-core-labs/[email protected]
with:
tagRegex: "releases/(.*)"
- name: Publish Release Update Site
if: startsWith(github.ref, 'refs/tags/releases/') && github.repository_owner == 'kit-sdq'
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.UPDATE_SITE_DEPLOY_KEY }}
external_repository: kit-sdq/updatesite
destination_dir: release/metamodels/demo/${{ steps.releaseVersion.outputs.tag }}
publish_dir: releng/edu.kit.ipd.sdq.metamodels.demo.updatesite/target/repository
publish_branch: master


7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ xtend-gen/
*.xtendbin

# Maven
bundles/*/target/*
features/*/target/*
releng/*/target/*
releng/*/workspace/*
target/
.polyglot.build.properties
.mvn/wrapper/maven-wrapper.jar
2 changes: 2 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

Loading