-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
62 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: CI | ||
'on': | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
# lint-dockerfile: | ||
# name: Lint Dockerfile | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Git checkout | ||
# uses: actions/checkout@v2 | ||
# - name: Run Hadolint Dockerfile Linter (Common) | ||
# uses: burdzwastaken/hadolint-action@master | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# HADOLINT_ACTION_DOCKERFILE_FOLDER: docker/cygnus-common | ||
# - name: Run Hadolint Dockerfile Linter (NGSI) | ||
# uses: burdzwastaken/hadolint-action@master | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# HADOLINT_ACTION_DOCKERFILE_FOLDER: docker/cygnus-ngsi | ||
# - name: Run Hadolint Dockerfile Linter (NGSI-LD) | ||
# uses: burdzwastaken/hadolint-action@master | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# HADOLINT_ACTION_DOCKERFILE_FOLDER: docker/cygnus-ngsi-ld | ||
# - name: Run Hadolint Dockerfile Linter (Twitter) | ||
# uses: burdzwastaken/hadolint-action@master | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# HADOLINT_ACTION_DOCKERFILE_FOLDER: docker/cygnus-twitter | ||
|
||
unit-test: | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
- name: Use Java 8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- name: 'cygnus-common Unit Tests' | ||
run: | | ||
cd "${GITHUB_WORKSPACE}"/cygnus-common | ||
mvn -q test | ||
mvn -q clean compile exec:exec assembly:single | ||
VERSION=$(cat pom.xml | grep version | sed -n '1p' | sed -ne '/<version>/s#\s*<[^>]*>\s*##gp' | sed 's/ //g') | ||
mvn -q install:install-file -Dfile=target/cygnus-common-$VERSION-jar-with-dependencies.jar -DgroupId=com.telefonica.iot -DartifactId=cygnus-common -Dversion=$VERSION -Dpackaging=jar -DgeneratePom=true | ||
- name: 'cygnus-ngsi Unit Tests' | ||
run: | | ||
cd "${GITHUB_WORKSPACE}"/cygnus-ngsi | ||
mvn -q test | ||
- name: 'cygnus-ngsi-ld Unit Tests' | ||
run: | | ||
cd "${GITHUB_WORKSPACE}"/cygnus-ngsi-ld | ||
mvn -q test |
This file was deleted.
Oops, something went wrong.