Skip to content

Commit

Permalink
fix: Correct terminology in testing workflow (#370)
Browse files Browse the repository at this point in the history
* Correct terminology in testing workflow

* adjust changes

Co-authored-by: schamala <schamala@twilio.com>
  • Loading branch information
Sindhura3 and schamala committed Jan 28, 2022
1 parent b18e07b commit 84d5796
Showing 1 changed file with 48 additions and 44 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
name: Platform Executable Sanity testing
name: Platform Executable Acceptance Testing
on:
workflow_dispatch:
workflow_run:
# wait for Platform Executable Release to complete
workflows: ["Debian Executable Release", "Macos Executable Release", "Windows Executable Release"]
workflows:
[
"Debian Executable Release",
"Macos Executable Release",
"Windows Executable Release",
]
branches: [main]
types:
- completed

jobs:
get-branch:
name: Get Current Branch Name
Expand Down Expand Up @@ -52,21 +57,21 @@ jobs:
get-tag:
runs-on: ubuntu-latest
outputs:
TAG_NAME: ${{steps.get-tag.outputs.TAG_NAME}}
TAG_NAME: ${{steps.get-tag.outputs.TAG_NAME}}
steps:
- uses: actions/checkout@v2
- name: Getting latest tag
id: get-tag
run: |
git fetch --prune --unshallow
echo "::set-output name=TAG_NAME::$(git describe --tags $(git rev-list --tags --max-count=1))"
- uses: actions/checkout@v2
- name: Getting latest tag
id: get-tag
run: |
git fetch --prune --unshallow
echo "::set-output name=TAG_NAME::$(git describe --tags $(git rev-list --tags --max-count=1))"
platform-exec-test:
name: Test for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: [get-tag, wait-for-releases]
strategy:
fail-fast: false
matrix:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
extension_type: '.deb'
Expand All @@ -75,38 +80,37 @@ jobs:
extension_type: '.pkg'
cmds_to_execute: sudo installer -pkg twilio-${{ needs.get-tag.outputs.TAG_NAME }}.pkg -target ~/
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Perform sanity install and test on binaries
env:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Perform install and test binaries
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release download ${{ needs.get-tag.outputs.TAG_NAME }} --pattern '*${{matrix.extension_type}}'
${{matrix.cmds_to_execute}}
ls
twilio --version
twilio api --help
run: |
gh release download ${{ needs.get-tag.outputs.TAG_NAME }} --pattern '*${{matrix.extension_type}}'
${{matrix.cmds_to_execute}}
ls
twilio --version
twilio api --help
platform-exec-test-Windows:
name: Test for Windows
runs-on: windows-latest
needs: [get-tag]
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Perform sanity install and tests on Windows
env:
name: Test for Windows
runs-on: windows-latest
needs: [get-tag]
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Perform install and test the Windows executable
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release download ${{ needs.get-tag.outputs.TAG_NAME }} --pattern '*.exe'
ls
iwr -useb get.scoop.sh | iex
scoop install gsudo
./twilio-${{ needs.get-tag.outputs.TAG_NAME }}.exe /S
sleep 100
$env:Path += ";C:\Program Files (x86)\twilio-cli\bin"
$Env:Path
cd C:\"Program Files (x86)\twilio-cli"
dir
twilio --version
twilio api --help
run: |
gh release download ${{ needs.get-tag.outputs.TAG_NAME }} --pattern '*.exe'
ls
iwr -useb get.scoop.sh | iex
scoop install gsudo
./twilio-${{ needs.get-tag.outputs.TAG_NAME }}.exe /S
sleep 100
$env:Path += ";C:\Program Files (x86)\twilio-cli\bin"
$Env:Path
cd C:\"Program Files (x86)\twilio-cli"
dir
twilio --version
twilio api --help

0 comments on commit 84d5796

Please sign in to comment.