Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Add deprecation notice #9

Add deprecation notice

Add deprecation notice #9

Workflow file for this run

name: ci
on:
push:
branches:
- "*" # run for branches
tags:
- "*" # run for tags
pull_request:
branches:
- "*" # run for branches
tags:
- "*" # run for tags
jobs:
test:
runs-on: ubuntu-latest
env:
GROUP: weaveworksdemos
COMMIT: ${{ github.sha }}
REPO: queue-master
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '8' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64
#
#
# Build
- name: Build jar files
run: ./scripts/build.sh
#
#
# Unit test
- name: Run unit tests
run: ./test/test.sh unit.py
#
#
# Component test
- name: Run component tests
run: ./test/test.sh component.py
#
#
# Upload coverage results to coveralls
- name: Submit Coveralls
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
if: github.event.pull_request.head.repo.full_name == github.repository
run: docker run --rm -v ${HOME}/.m2:/root/.m2 -v ${PWD}/test/..:/usr/src/mymaven -w /usr/src/mymaven maven:3.2-jdk-8 mvn -DrepoToken=${COVERALLS_TOKEN} -DserviceJobId=${GITHUB_RUN_ID} -Dbranch=${GITHUB_REF} -DpullRequest=${GITHUB_HEAD_REF} -DserviceName=GITHUB verify jacoco:report coveralls:report
#
#
# Push to dockerhub
- name: Push to Docker Hub
uses: docker/build-push-action@v1
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master'
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
repository: ${{ env.GROUP }}/${{ env.REPO }}
tag_with_ref: true
tag_with_sha: true
path: docker/queue-master
dockerfile: docker/queue-master/Dockerfile