Skip to content

updated testing pool #86

updated testing pool

updated testing pool #86

name: "Build/test (virtual)"
on: [push]
env:
REGISTRY: scittoss.azurecr.io
IMAGE_NAME: test-scitt-vim
TAG: ${{ github.sha }}
jobs:
build-test:
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
container:
image: mcr.microsoft.com/ccf/app/dev:3.0.12-virtual
env:
# Helps to distinguish between CI and local builds.
SCITT_CI: 1
# Additional CMake flags.
PLATFORM: virtual
CMAKE_BUILD_TYPE: Debug
ENABLE_PREFIX_TREE: ON
ENABLE_CLANG_TIDY: ON
# These make CI print all the errors, rather than stopping early.
CXXFLAGS: -ferror-limit=0
NINJA_FLAGS: -k 0
steps:
- name: Checkout repository with tags
uses: actions/checkout@v3
with:
fetch-depth: 0
# Work-around for https://github.com/actions/runner/issues/2033
- name: Work around git safe.directory in container
run: chown -R $(id -u):$(id -g) $PWD
- run: apt-get update && apt-get install -y libcurl4-openssl-dev faketime clang-tidy-10
- run: ./scripts/ci-checks.sh
- run: ./build.sh
- run: ./run_unit_tests.sh
- run: ./run_functional_tests.sh --enable-prefix-tree --enable-faketime
- name: Checkout code
uses: actions/checkout@v2
- name: Login to Azure Container Registry
uses: azure/docker-login@v1
with:
login-server: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build Docker image
run: docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} .
- name: Push Docker image to Azure Container Registry
run: docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}