Skip to content

Commit

Permalink
upstream workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vmotso committed Apr 12, 2021
1 parent 59725b3 commit 141b97f
Showing 1 changed file with 39 additions and 31 deletions.
70 changes: 39 additions & 31 deletions .github/workflows/upstream.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: upstream

on:
workflow_dispatch:
inputs:
Expand All @@ -12,36 +13,43 @@ on:
upstream_sha:
description: "Upstream SHA"
required: true

jobs:
acc-tests:
runs-on: ubuntu-latest
name: acc-tests
env:
REVIZOR_URL: ${{ secrets.REVIZOR_URL }}
REVIZOR_TOKEN: ${{ secrets.REVIZOR_TOKEN }}
SCALR_TOKEN: ${{ secrets.SCALR_TOKEN }}
API_BRANCH: ${{ github.event.inputs.api_branch }}
DB_BRANCH: ${{ github.event.inputs.db_branch }}
UPSTREAM_SHA: ${{ github.event.inputs.upstream_sha }}
ORG_ADMIN_TOKEN: ${{ secrets.ORG_ADMIN_TOKEN }}
hello:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.13"
- name: Create container
id: create
uses: Scalr/gh-action-revizor@master
with:
command: create
- name: Run acceptance tests
env:
SCALR_HOSTNAME: ${{ steps.create.outputs.hostname }}
run: make testacc
- name: Delete container
id: delete
if: ${{ always() && steps.create.outputs.container_id }}
uses: Scalr/gh-action-revizor@master
with:
command: delete
container_id: ${{ steps.create.outputs.container_id }}
- name: Hello World!
run: echo "Hello World"
# jobs:
# acc-tests:
# runs-on: ubuntu-latest
# name: acc-tests
# env:
# REVIZOR_URL: ${{ secrets.REVIZOR_URL }}
# REVIZOR_TOKEN: ${{ secrets.REVIZOR_TOKEN }}
# SCALR_TOKEN: ${{ secrets.SCALR_TOKEN }}
# API_BRANCH: ${{ github.event.inputs.api_branch }}
# DB_BRANCH: ${{ github.event.inputs.db_branch }}
# UPSTREAM_SHA: ${{ github.event.inputs.upstream_sha }}
# ORG_ADMIN_TOKEN: ${{ secrets.ORG_ADMIN_TOKEN }}
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v2
# with:
# go-version: "1.13"
# - name: Create container
# id: create
# uses: Scalr/gh-action-revizor@master
# with:
# command: create
# - name: Run acceptance tests
# env:
# SCALR_HOSTNAME: ${{ steps.create.outputs.hostname }}
# run: make testacc
# - name: Delete container
# id: delete
# if: ${{ always() && steps.create.outputs.container_id }}
# uses: Scalr/gh-action-revizor@master
# with:
# command: delete
# container_id: ${{ steps.create.outputs.container_id }}

0 comments on commit 141b97f

Please sign in to comment.