@@ -16,18 +16,113 @@ jobs:
16
16
17
17
build :
18
18
19
- runs-on : ubuntu-latest
19
+ runs-on : ubuntu-20.04
20
20
21
21
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
24
27
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
26
50
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
+
28
123
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
31
126
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
0 commit comments