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

Issue #698 - Feature Request: Build Verification Workflow #699

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ env:
jobs:
# This job will build and then push to docker hub
build-push:
# Prevent job from running in forks
if: github.repository_owner == 'open_horizon'

# The type of runner the job will run on
runs-on: ubuntu-20.04

Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/build-verification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow is simply to verify that the Anax binaries build successfully, to be used for testing in forks
name: Build Verification

on: workflow_dispatch

jobs:
build-verification:
runs-on: ubuntu-20.04

env:
BUILD_NUMBER: ${{ github.run_number }}
IMAGE_VERSION: ''

steps:
# Checkout our Github repo
- name: Checkout Github Repo
uses: actions/checkout@v3

# Setup Scala
# Comes from open source action: https://github.com/coursier/setup-action
- name: Setup Scala
uses: coursier/setup-action@v1

# Configure version variables
- name: Config Version Variables
run: |
VERSION=$(head -n 1 src/main/resources/version.txt)
echo "IMAGE_VERSION="${VERSION}"" >> $GITHUB_ENV

# Compile
- name: Compile
run: |
sbt compile

# Package
- name: Package
run: |
sbt package
docker image ls