Skip to content

Commit 3e00994

Browse files
committed
New Github Actions for testing CLI install on MacOS after each release
1 parent 6c54e0f commit 3e00994

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow triggers when a new release has been made.
2+
3+
name: OCI CLI Installation Testing
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the main branch
8+
release:
9+
types: [released]
10+
11+
# Allows you to run this workflow manually from the Actions tab.
12+
workflow_dispatch:
13+
inputs:
14+
release:
15+
description: 'Release version number ("latest" or "v1.35.0")'
16+
required: true
17+
default: latest
18+
19+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
20+
jobs:
21+
# This workflow contains a single job called "build"
22+
build:
23+
# NOTE: If this runs in an environment, set this value (where "MC-Action" is the environment name)
24+
# environment: MC-Action
25+
26+
# The type of runner that the job will run on
27+
runs-on: macos-11
28+
steps:
29+
- name: Get Latest Release with Tag
30+
id: latestrelease
31+
run: |
32+
echo "::set-output name=releasetag::$(curl -s https://api.github.com/repos/oracle/oci-cli/releases/latest | jq '.tag_name' | sed 's/\"//g')"
33+
- name: Confirm Release Tag
34+
run: |
35+
echo ${{ steps.latestrelease.outputs.releasetag }}
36+
- name: Tag Checkout
37+
uses: actions/checkout@v2
38+
with:
39+
ref: ${{ steps.latestrelease.outputs.releasetag }}
40+
- name: Run MacOS Installation Tests
41+
run: ./scripts/github_actions/mac_installation_tests.sh

0 commit comments

Comments
 (0)