Skip to content

Commit 6b0a03f

Browse files
committed
Define workflow for build/test phases
1 parent 0dc4ba6 commit 6b0a03f

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
#
18+
19+
name: Continuous Integration
20+
on:
21+
push:
22+
branches: [ master ]
23+
pull_request:
24+
branches: [ master ]
25+
types: [ opened, synchronize, reopened ]
26+
jobs:
27+
ci:
28+
runs-on: ubuntu-22.04
29+
steps:
30+
- name: Checkout runtime repo
31+
uses: actions/checkout@v3
32+
with:
33+
path: runtime
34+
- name: Scan Code
35+
uses: apache/openwhisk-utilities/scancode@master
36+
- name: Checkout OpenWhisk core repo
37+
uses: actions/checkout@v3
38+
with:
39+
repository: apache/openwhisk
40+
path: core
41+
- name: Setup Java
42+
uses: actions/setup-java@v3
43+
with:
44+
distribution: 'temurin'
45+
java-version: '11'
46+
- name: Compile and Install Core OpenWhisk
47+
working-directory: core
48+
run: |
49+
./gradlew :tests:compileTestScala
50+
./gradlew install
51+
- name: Build Runtime
52+
working-directory: runtime
53+
run: |
54+
./gradlew distDocker
55+
- name: Test Runtime
56+
working-directory: runtime
57+
run: |
58+
./gradlew :tests:checkScalafmtAll
59+
./gradlew :tests:test

0 commit comments

Comments
 (0)