-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimental Pipeline Changs: Remove PR deploy, replace with npm build.
- Loading branch information
Showing
4 changed files
with
91 additions
and
5 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,86 @@ | ||
# PR Build | ||
# Builds the PR | ||
name: PR Build | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# Print variables for logging and debugging purposes | ||
checkEnv: | ||
name: Print Env variables | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
if: ${{ github.event.pull_request.merged == false }} | ||
steps: | ||
- name: Print Env Vars | ||
run: | | ||
echo OC CLI Version: $(oc version) | ||
echo Git Base Ref: ${{ github.base_ref }} | ||
echo Git Change ID: ${{ github.event.number }} | ||
echo Git Pull Request Ref: ${{ github.event.pull_request.head.sha }} | ||
echo Git Event Name: ${{ github.event_name }} | ||
echo Git Event Action: ${{ github.event.action }} | ||
echo Git Branch Ref: ${{ github.head_ref }} | ||
echo PR in Draft: ${{ github.event.pull_request.draft }} | ||
# Build the APP | ||
buildAPP: | ||
name: Build APP Image | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
if: ${{ github.event.pull_request.merged == false }} | ||
env: | ||
PR_NUMBER: ${{ github.event.number }} | ||
APP_NAME: "biohub-platform-app" | ||
steps: | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Checkout Target Branch | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install node modules | ||
working-directory: app | ||
run: npm ci | ||
|
||
- name: Run build | ||
working-directory: app | ||
run: npm run build --if-present | ||
|
||
# Build the API | ||
buildAPI: | ||
name: Build API Image | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
if: ${{ github.event.pull_request.merged == false }} | ||
env: | ||
PR_NUMBER: ${{ github.event.number }} | ||
APP_NAME: "biohub-platform-api" | ||
steps: | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Checkout Target Branch | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install node modules | ||
working-directory: api | ||
run: npm ci | ||
|
||
- name: Run build | ||
working-directory: api | ||
run: npm run build --if-present |
File renamed without changes.
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
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