Skip to content

Commit

Permalink
Tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Sep 27, 2021
1 parent b53fc77 commit 306baff
Showing 1 changed file with 52 additions and 9 deletions.
61 changes: 52 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,51 @@ env:
IBM_CLOUD_RESOURCE_GROUP: odo-phmartin-openshift-group

jobs:
setup-build-test:
name: Setup, Build and Test
runs-on: ubuntu-latest
# setup-build-test-linux:
# name: Setup, Build and Test on Linux
# runs-on: ubuntu-latest
# steps:
#
# - name: Checkout
# uses: actions/checkout@v2
#
# - name: Setup Go
# uses: actions/setup-go@v2
# with:
# go-version: '^1.15.1'
#
# - name: Build odo
# run: make install
#
# - name: Install IBM Cloud CLI
# run: |
# curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
# ibmcloud --version
# ibmcloud config --check-version=false
# ibmcloud plugin install -f kubernetes-service
#
# - name: Authenticate with IBM Cloud CLI
# run: |
# ibmcloud login --apikey "${IBM_CLOUD_API_KEY}" -r "${IBM_CLOUD_REGION}" -g "${IBM_CLOUD_RESOURCE_GROUP}"
#
# - name: Connect to Openshift cluster
# run: |
# ibmcloud ks cluster config --cluster $IKS_CLUSTER --admin
# ENDPOINT="$(kubectl config view -o jsonpath='{range .clusters[0]}{.cluster.server}{end}')"
# oc login -u apikey -p ${IBM_CLOUD_API_KEY} --server=${ENDPOINT}
#
# - name: Run Integration tests
# run: |
# make test-integration
# make test-integration-devfile
# make test-operator-hub
# make test-cmd-login-logout
# make test-cmd-project
# make test-e2e-devfile

setup-build-test-windows:
name: Setup, Build and Test on Windows
runs-on: windows-latest
steps:

- name: Checkout
Expand All @@ -42,19 +84,20 @@ jobs:
run: make install

- name: Install IBM Cloud CLI
shell: powershell
run: |
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud --version
ibmcloud config --check-version=false
ibmcloud plugin install -f kubernetes-service
iex(New-Object Net.WebClient).DownloadString('https://clis.cloud.ibm.com/install/powershell')
IBM_Cloud_CLI/ibmcloud --version
IBM_Cloud_CLI/ibmcloud config --check-version=false
IBM_Cloud_CLI/ibmcloud plugin install -f kubernetes-service
- name: Authenticate with IBM Cloud CLI
run: |
ibmcloud login --apikey "${IBM_CLOUD_API_KEY}" -r "${IBM_CLOUD_REGION}" -g "${IBM_CLOUD_RESOURCE_GROUP}"
IBM_Cloud_CLI/ibmcloud login --apikey "${IBM_CLOUD_API_KEY}" -r "${IBM_CLOUD_REGION}" -g "${IBM_CLOUD_RESOURCE_GROUP}"
- name: Connect to Openshift cluster
run: |
ibmcloud ks cluster config --cluster $IKS_CLUSTER --admin
IBM_Cloud_CLI/ibmcloud ks cluster config --cluster $IKS_CLUSTER --admin
ENDPOINT="$(kubectl config view -o jsonpath='{range .clusters[0]}{.cluster.server}{end}')"
oc login -u apikey -p ${IBM_CLOUD_API_KEY} --server=${ENDPOINT}
Expand Down

0 comments on commit 306baff

Please sign in to comment.