Skip to content

Periodic

Periodic #2869

Workflow file for this run

# Copyright 2023 The Nuclio Authors.
#
# Licensed 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: Periodic
on:
schedule:
- cron: '0 */12 * * *'
env:
DOCKER_BUILDKIT: 1
jobs:
periodic:
name: Periodic Regression
# TODO: update this to ubuntu-latest when the runner issue is fixed:
# https://github.com/actions/runner-images/discussions/7188
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
command: [nuctl-tests,dotnet-tests,golang-tests,java-tests,python-tests,python-runtime-tests,fast-tests]
# let's not run this on every fork, comment this out when developing periodic on your fork
if: github.repository == 'nuclio/nuclio'
steps:
- uses: actions/checkout@v3
- name: Freeing up disk space
run: "${GITHUB_WORKSPACE}/hack/scripts/ci/free-space.sh"
- uses: actions/setup-go@v3
with:
cache: true
go-version-file: go.mod
- name: Build
run: make build
env:
NUCLIO_NUCTL_CREATE_SYMLINK: false
- name: Test
run: LIST_TESTS_MAKE_COMMAND=${{ matrix.command }} make test
env:
NUCLIO_CI_SKIP_STRESS_TEST: true
- name: System stats on failure
if: ${{ failure() }}
run: "${GITHUB_WORKSPACE}/hack/scripts/ci/system-stats.sh"
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
notify_when: "failure"
notification_title: "{workflow} has failed"
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
footer: "<{repo_url}|{repo}> | <{run_url}|View Run>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}