Skip to content

CI AND IT

CI AND IT #1246

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: CI AND IT
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 18 * * *' # TimeZone: UTC 0
jobs:
check-license-header:
name: Check License Header
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Check License Header
uses: apache/skywalking-eyes/header@20da317d1ad158e79e24355fdc28f53370e94c8a
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
dependency-license:
name: Dependency licenses
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "8"
cache: "maven"
- name: Check Dependencies' License
uses: apache/skywalking-eyes/dependency@20da317d1ad158e79e24355fdc28f53370e94c8a
build:
name: JDK ${{ matrix.version }} Build and Test
needs: [ check-license-header ]
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
version: [ 8, 11, 17, 21 ]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.version }}
cache: 'maven'
- name: Login to ghcr
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Test
run: ./mvnw -q clean verify install
ci:
name: CI
runs-on: ubuntu-latest
needs: [ build, dependency-license ]
steps:
- run: echo 'Success'