Skip to content

[tests] and different operation modes to integration testing script #43

[tests] and different operation modes to integration testing script

[tests] and different operation modes to integration testing script #43

Workflow file for this run

# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
name: CI
on: [push, pull_request]
jobs:
# Run lint checks on codebase.
lint:
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: Run linter checks
run: bazel test //quality/...
# Build and test everything in codebase.
test:
runs-on: ubuntu-22.04
timeout-minutes: 80
steps:
- uses: actions/checkout@v2
- name: Build everything
run: |
bazel build //...
bazel run //release:release -- \
--norelease \
--copy "${PWD}/artifacts" \
"no_tag_not_a_release"
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: artifacts/*
- name: Test everything
# Skip running lint tests as those are run in a previous stage.
run: bazel test --test_tag_filters=-lint //...
# Test airgapped build.
airgapped_build_test:
runs-on: ubuntu-22.04
timeout-minutes: 80
steps:
- uses: actions/checkout@v2
- name: Build everything in an airgapped network namespace.
run: |
./util/airgapped_builds/test-airgapped-build.sh