initial commit for nodejs20 runtime #85
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Test Pull request | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "master" branch | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
# Checkout just this repo | |
- name: Checkout runtime repo | |
uses: actions/checkout@v3 | |
# with: | |
# path: runtime | |
# # run scanCode | |
# - name: Scan Code | |
# uses: apache/openwhisk-utilities/scancode@master | |
# # Install core OpenWhisk artifacts needed to build/test anything else | |
# - name: Checkout OpenWhisk core repo | |
# uses: actions/checkout@v3 | |
# with: | |
# repository: ibm-functions/openwhisk | |
# ref: master/7ae02b8ede4f4b4068b3b95dbc3f02f902d936c9 | |
# path: core | |
# fetch-depth: 0 | |
# Setup Python to run the Scala Tests | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
# Setup Java to run the Scala Tests | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
# # Setup OpenWhisk | |
# - name: Setup OpenWhisk | |
# working-directory: core | |
# run: | | |
# ./tools/travis/setup.sh | |
# - name: Compile and Install Core OpenWhisk | |
# working-directory: core | |
# run: | | |
# export OPENWHISK_HOME=$(pwd)/../core | |
# IMAGE_PREFIX="testing" | |
# docker pull ibmfunctions/controller:nightly | |
# docker tag ibmfunctions/controller:nightly ${IMAGE_PREFIX}/controller | |
# docker pull ibmfunctions/invoker:nightly | |
# docker tag ibmfunctions/invoker:nightly ${IMAGE_PREFIX}/invoker | |
# ./gradlew install | |
# # Build Runtime: | |
# - name: Build Runtime | |
# working-directory: runtime | |
# run: | | |
# IMAGE_PREFIX="testing" | |
# ./gradlew distDocker -PdockerImagePrefix=${IMAGE_PREFIX} | |
# - name: Deploy | |
# working-directory: core | |
# run: | | |
# export OPENWHISK_HOME=$(pwd)/../core | |
- name: befor install -> install python3-pip | |
run: sudo apt-get install -y python3-pip | |
- name: befor install -> upgrade pip setuptools six | |
run: | | |
pip install --user --upgrade pip setuptools six | |
pip3 install --user --upgrade pip setuptools six | |
- name: Python verison | |
run: | | |
python --version | |
python3 --version | |
python3.10 --version | |
pip --version | |
pip3 --version | |
pip3.10 --version | |
- name: befor install -> setup.sh | |
run: | | |
./tools/travis/setup.sh | |
- name: script -> build | |
run: | | |
./tools/travis/build.sh | |
- name: script -> deploy | |
run: | | |
pip install --user jinja2==3.0.3 | |
./tools/travis/deploy.sh | |
- name: script-> test | |
run: | | |
./tools/travis/test.sh | |
# - name: befor install | |
# run: sudo update-ca-certificates --fresh && ./tools/travis/setup.sh | |
# - name: script | |
# run: ./tools/travis/build.sh && ./tools/travis/deploy.sh && ./tools/travis/test.sh |