blob: 82e5a364e3c6dd0a9d0242243a808d96a4447d59 [file] [log] [blame]
# Copyright (c) 2020 Project CHIP 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: Cirque
on:
push:
pull_request:
jobs:
build:
name: Cirque
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Bootstrap
run: |
scripts/tests/cirque_tests.sh bootstrap
- name: Artifact suffix
id: outsuffix
uses: haya14busa/action-cond@v1.0.0
with:
cond: ${{ github.event.pull_request.number == '' }}
if_true: "${{ github.sha }}"
if_false: "pull-${{ github.event.pull_request.number }}"
- name: Run Tests
run: |
mkdir -p /tmp/cirque_test_output
sudo LOG_DIR=/tmp/cirque_test_output/ CLEANUP_DOCKER_FOR_CI=1 scripts/tests/cirque_tests.sh run_all_tests
- name: Uploading Binaries
uses: actions/upload-artifact@v1
if: ${{ always() }}
with:
name:
cirque_log-${{
steps.outsuffix.outputs.value }}
path: /tmp/cirque_test_output/