Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 3518a52

Browse files
authored
Get GitHub Action Running (#260)
* Using ubuntu 20.4, python 3.10, jdk 11.
1 parent ff851f0 commit 3518a52

File tree

3 files changed

+107
-13
lines changed

3 files changed

+107
-13
lines changed

.github/workflows/run-tests.yml

Lines changed: 104 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,113 @@ jobs:
1616

1717
build:
1818

19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-20.04
2020

2121
steps:
22-
- name: Check out the repo
23-
uses: actions/checkout@v2
22+
# Checkout just this repo
23+
- name: Checkout runtime repo
24+
uses: actions/checkout@v3
25+
# with:
26+
# path: runtime
2427

25-
- uses: actions/setup-python@v4
28+
# # run scanCode
29+
# - name: Scan Code
30+
# uses: apache/openwhisk-utilities/scancode@master
31+
32+
# # Install core OpenWhisk artifacts needed to build/test anything else
33+
# - name: Checkout OpenWhisk core repo
34+
# uses: actions/checkout@v3
35+
# with:
36+
# repository: ibm-functions/openwhisk
37+
# ref: master/7ae02b8ede4f4b4068b3b95dbc3f02f902d936c9
38+
# path: core
39+
# fetch-depth: 0
40+
41+
# Setup Python to run the Scala Tests
42+
- name: Setup Python
43+
uses: actions/setup-python@v4
44+
with:
45+
python-version: '3.10'
46+
47+
# Setup Java to run the Scala Tests
48+
- name: Setup Java
49+
uses: actions/setup-java@v3
2650
with:
27-
python-version: '3.9'
51+
distribution: 'temurin'
52+
java-version: '11'
53+
54+
55+
# # Setup OpenWhisk
56+
# - name: Setup OpenWhisk
57+
# working-directory: core
58+
# run: |
59+
# ./tools/travis/setup.sh
60+
61+
62+
63+
# - name: Compile and Install Core OpenWhisk
64+
# working-directory: core
65+
# run: |
66+
# export OPENWHISK_HOME=$(pwd)/../core
67+
# IMAGE_PREFIX="testing"
68+
# docker pull ibmfunctions/controller:nightly
69+
# docker tag ibmfunctions/controller:nightly ${IMAGE_PREFIX}/controller
70+
# docker pull ibmfunctions/invoker:nightly
71+
# docker tag ibmfunctions/invoker:nightly ${IMAGE_PREFIX}/invoker
72+
# ./gradlew install
73+
74+
# # Build Runtime:
75+
# - name: Build Runtime
76+
# working-directory: runtime
77+
# run: |
78+
# IMAGE_PREFIX="testing"
79+
# ./gradlew distDocker -PdockerImagePrefix=${IMAGE_PREFIX}
80+
81+
# - name: Deploy
82+
# working-directory: core
83+
# run: |
84+
# export OPENWHISK_HOME=$(pwd)/../core
85+
86+
87+
- name: befor install -> install python3-pip
88+
run: sudo apt-get install -y python3-pip
89+
90+
- name: befor install -> upgrade pip setuptools six
91+
run: |
92+
pip install --user --upgrade pip setuptools six
93+
pip3 install --user --upgrade pip setuptools six
94+
95+
- name: Python verison
96+
run: |
97+
python --version
98+
python3 --version
99+
python3.10 --version
100+
pip --version
101+
pip3 --version
102+
pip3.10 --version
103+
104+
- name: befor install -> setup.sh
105+
run: |
106+
./tools/travis/setup.sh
107+
108+
- name: script -> build
109+
run: |
110+
./tools/travis/build.sh
111+
112+
- name: script -> deploy
113+
run: |
114+
pip install --user jinja2==3.0.3
115+
./tools/travis/deploy.sh
116+
117+
- name: script-> test
118+
run: |
119+
./tools/travis/test.sh
120+
121+
122+
28123

29-
- name: befor install
30-
run: sudo update-ca-certificates --fresh && ./tools/travis/setup.sh
124+
# - name: befor install
125+
# run: sudo update-ca-certificates --fresh && ./tools/travis/setup.sh
31126

32-
- name: script
33-
run: ./tools/travis/build.sh && ./tools/travis/deploy.sh && ./tools/travis/test.sh
127+
# - name: script
128+
# run: ./tools/travis/build.sh && ./tools/travis/deploy.sh && ./tools/travis/test.sh

tools/travis/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ IMAGE_PREFIX="testing"
1313

1414
# Setup Ansible CMD
1515
cd $WHISKDIR/ansible
16-
ANSIBLE_CMD="ansible-playbook -i ${ROOTDIR}/ansible/environments/local -e docker_image_prefix=${IMAGE_PREFIX}"
16+
ANSIBLE_CMD="ansible-playbook -vvv -i ${ROOTDIR}/ansible/environments/local -e docker_image_prefix=${IMAGE_PREFIX}"
1717

1818
# Weird probem with Travis container names already taken, but we are suppose to get a clean VM
1919
$ANSIBLE_CMD teardown.yml

tools/travis/setup.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ cd $HOMEDIR
3030
# Clone and setup openwhisk to have a local test environment.
3131
git clone https://github.com/ibm-functions/openwhisk.git openwhisk
3232
cd openwhisk
33-
# Use a fixed commit to run the tests, to explicitly control when changes are consumed.
34-
# Commit: Dedicated Invokers (#5292)
35-
git checkout 7ae02b8ede4f4b4068b3b95dbc3f02f902d936c9
33+
34+
git checkout 8d7f1dfc85b12fda81153c34a540f6c01a4780f4
3635

3736
./tools/travis/setup.sh
3837

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy