2021-02-01 19:05:50 +03:00
|
|
|
name: test
|
2021-01-30 00:29:51 +03:00
|
|
|
|
2022-11-03 18:10:38 +03:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
branch:
|
|
|
|
description: "ref branch for this workflow"
|
|
|
|
default: "master"
|
|
|
|
required: true
|
|
|
|
type: string
|
2021-01-30 00:29:51 +03:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
2021-11-25 12:25:00 +03:00
|
|
|
benchsuite:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-10-04 16:31:38 +03:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
2022-11-03 18:10:38 +03:00
|
|
|
with:
|
|
|
|
ref: ${{ inputs.branch }}
|
2022-10-04 16:31:38 +03:00
|
|
|
- name: Environment
|
|
|
|
run: bin/environment.sh
|
|
|
|
- name: Install Prerequisites
|
|
|
|
run: bin/install_prerequisites_ubuntu.sh
|
|
|
|
- name: Install Rust
|
|
|
|
run: bin/install_rust_latest.sh
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
bin/release/release.sh
|
|
|
|
echo "PATH=${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
|
|
|
|
- name: Bench Suite
|
|
|
|
run: bin/test/bench.sh
|
|
|
|
- name: Archive artifacts
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: tests-bench-artifacts
|
|
|
|
path: |
|
|
|
|
bench/server.log
|
2021-11-25 12:25:00 +03:00
|
|
|
|
2022-09-14 10:42:22 +03:00
|
|
|
test-ubuntu-x64-latest:
|
2021-01-30 00:29:51 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-11-25 12:25:00 +03:00
|
|
|
rust: [stable]
|
2021-01-30 00:29:51 +03:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-05-17 11:04:49 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-11-03 18:10:38 +03:00
|
|
|
with:
|
|
|
|
ref: ${{ inputs.branch }}
|
2022-07-30 05:49:56 +03:00
|
|
|
- name: Environment
|
|
|
|
run: bin/environment.sh
|
|
|
|
- name: Install Prerequisites
|
|
|
|
run: bin/install_prerequisites_ubuntu.sh
|
|
|
|
- name: Install Rust
|
|
|
|
run: bin/install_rust_latest.sh
|
|
|
|
- name: Test Prerequisites
|
|
|
|
run: bin/test/test_prerequisites.sh
|
2022-10-04 16:31:38 +03:00
|
|
|
- name: Tests units
|
|
|
|
run: |
|
|
|
|
bin/test/test_unit.sh
|
2023-03-03 18:49:48 +03:00
|
|
|
bin/release/release.sh
|
2022-10-04 16:31:38 +03:00
|
|
|
echo "PATH=${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
|
|
|
|
- name: Integration Tests
|
2022-07-30 05:49:56 +03:00
|
|
|
run: bin/test/test_integ.sh
|
2021-02-03 22:31:09 +03:00
|
|
|
- name: Archive production artifacts
|
2022-05-17 11:04:53 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-02-03 22:31:09 +03:00
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: tests-ubuntu-${{ matrix.rust }}-artifacts
|
2021-02-06 14:15:32 +03:00
|
|
|
path: |
|
2023-01-23 10:20:45 +03:00
|
|
|
./**/*.log
|
|
|
|
./**/report/*.json
|
|
|
|
./**/report/*.xml
|
2021-11-08 13:23:15 +03:00
|
|
|
|
2023-02-21 15:53:04 +03:00
|
|
|
test-ubuntu-x64-20-04:
|
|
|
|
runs-on: ubuntu-20.04
|
2022-09-14 10:42:22 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
rust: [stable]
|
|
|
|
steps:
|
2022-10-04 16:31:38 +03:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
2022-11-03 18:10:38 +03:00
|
|
|
with:
|
|
|
|
ref: ${{ inputs.branch }}
|
2023-02-23 19:00:54 +03:00
|
|
|
- name: Install Python 3.10
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.10'
|
2022-10-24 17:59:07 +03:00
|
|
|
- name: Environment
|
|
|
|
run: bin/environment.sh
|
|
|
|
- name: Install Prerequisites
|
|
|
|
run: bin/install_prerequisites_ubuntu.sh
|
|
|
|
- name: Install Rust
|
|
|
|
run: bin/install_rust_latest.sh
|
2022-10-04 16:31:38 +03:00
|
|
|
- name: Test Prerequisites
|
|
|
|
run: bin/test/test_prerequisites.sh
|
|
|
|
- name: Tests units
|
|
|
|
run: |
|
|
|
|
bin/test/test_unit.sh
|
2023-03-03 18:49:48 +03:00
|
|
|
bin/release/release.sh
|
2022-10-04 16:31:38 +03:00
|
|
|
echo "PATH=${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
|
|
|
|
- name: Integration Tests
|
|
|
|
run: bin/test/test_integ.sh
|
|
|
|
- name: Archive production artifacts
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: tests-ubuntu-${{ matrix.rust }}-artifacts
|
|
|
|
path: |
|
2023-01-23 10:20:45 +03:00
|
|
|
./**/*.log
|
|
|
|
./**/report/*.json
|
|
|
|
./**/report/*.xml
|
2022-09-14 10:42:22 +03:00
|
|
|
|
2021-11-25 12:25:00 +03:00
|
|
|
test-docker-archlinux-x64:
|
2021-11-08 13:23:15 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-11-03 18:10:38 +03:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
ref: ${{ inputs.branch }}
|
2021-11-25 12:25:00 +03:00
|
|
|
- name: Build, Test units and Integration tests
|
2021-11-17 12:20:40 +03:00
|
|
|
uses: addnab/docker-run-action@v3
|
2021-11-08 13:23:15 +03:00
|
|
|
with:
|
|
|
|
image: archlinux
|
|
|
|
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged --env CARGO_TERM_COLOR=always
|
|
|
|
run: |
|
2022-12-14 16:28:49 +03:00
|
|
|
set -e
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::group::Install Prerequisites"
|
2022-12-15 17:25:21 +03:00
|
|
|
bin/install_prerequisites_docker_archlinux.sh
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::endgroup::"
|
2022-12-14 16:28:49 +03:00
|
|
|
echo "::group::Environment"
|
|
|
|
bin/environment.sh
|
|
|
|
echo "::endgroup::"
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::group::Install Rust"
|
2022-06-05 22:08:50 +03:00
|
|
|
bin/install_rust_latest.sh
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::endgroup::"
|
|
|
|
echo "::group::Tests"
|
2022-07-30 05:49:56 +03:00
|
|
|
bin/test/test.sh
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::endgroup::"
|
2021-11-08 13:23:15 +03:00
|
|
|
- name: Archive production artifacts
|
2022-05-17 11:04:53 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-11-08 13:23:15 +03:00
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: tests-archlinux-x64-artifacts
|
|
|
|
path: |
|
2023-01-23 10:20:45 +03:00
|
|
|
./**/*.log
|
2021-11-08 13:23:15 +03:00
|
|
|
|
2021-11-25 12:25:00 +03:00
|
|
|
test-docker-fedora-x64:
|
2021-11-17 12:20:40 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-11-03 18:10:38 +03:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
ref: ${{ inputs.branch }}
|
2021-11-25 12:25:00 +03:00
|
|
|
- name: Build, Test units and Integration tests
|
2021-11-17 12:20:40 +03:00
|
|
|
uses: addnab/docker-run-action@v3
|
|
|
|
with:
|
|
|
|
image: fedora
|
|
|
|
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged --env CARGO_TERM_COLOR=always
|
|
|
|
run: |
|
2022-12-14 16:28:49 +03:00
|
|
|
set -e
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::group::Install Prerequisites"
|
2022-12-15 17:25:21 +03:00
|
|
|
bin/install_prerequisites_docker_fedora.sh
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::endgroup::"
|
2022-12-14 16:28:49 +03:00
|
|
|
echo "::group::Environment"
|
|
|
|
bin/environment.sh
|
|
|
|
echo "::endgroup::"
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::group::Install Rust"
|
2022-06-05 22:08:50 +03:00
|
|
|
bin/install_rust_latest.sh
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::endgroup::"
|
|
|
|
echo "::group::Tests"
|
2022-07-30 05:49:56 +03:00
|
|
|
bin/test/test.sh
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::endgroup::"
|
2023-01-23 10:20:45 +03:00
|
|
|
- name: find artifacts
|
|
|
|
run: |
|
|
|
|
pwd
|
|
|
|
find . -name "*.log"
|
2021-11-17 12:20:40 +03:00
|
|
|
- name: Archive production artifacts
|
2022-05-17 11:04:53 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-11-17 12:20:40 +03:00
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: tests-fedora-x64-artifacts
|
|
|
|
path: |
|
2023-01-23 10:20:45 +03:00
|
|
|
./**/*.log
|
2021-11-17 12:20:40 +03:00
|
|
|
|
2021-11-29 15:58:18 +03:00
|
|
|
test-docker-alpine-x64:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-11-03 18:10:38 +03:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
ref: ${{ inputs.branch }}
|
2021-11-29 15:58:18 +03:00
|
|
|
- name: Build, Test units and Integration tests
|
|
|
|
uses: addnab/docker-run-action@v3
|
|
|
|
with:
|
|
|
|
image: alpine
|
2022-12-22 14:01:57 +03:00
|
|
|
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged --env CARGO_TERM_COLOR=always
|
2021-11-29 15:58:18 +03:00
|
|
|
run: |
|
2022-12-14 16:28:49 +03:00
|
|
|
set -e
|
|
|
|
apk update --quiet
|
|
|
|
apk add --quiet bash
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::group::Install Prerequisites"
|
2022-07-30 05:49:56 +03:00
|
|
|
bin/install_prerequisites_alpine.sh
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::endgroup::"
|
2022-12-14 16:28:49 +03:00
|
|
|
echo "::group::Environment"
|
|
|
|
bin/environment.sh
|
|
|
|
echo "::endgroup::"
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::group::Install Rust"
|
2022-06-05 22:08:50 +03:00
|
|
|
bin/install_rust_latest.sh
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::endgroup::"
|
|
|
|
echo "::group::Tests"
|
2022-07-30 05:49:56 +03:00
|
|
|
bin/test/test.sh
|
2022-10-25 15:01:53 +03:00
|
|
|
echo "::endgroup::"
|
2023-01-23 10:20:45 +03:00
|
|
|
- name: find artifacts
|
|
|
|
run: |
|
|
|
|
pwd
|
|
|
|
find . -name "*.log"
|
2021-11-29 15:58:18 +03:00
|
|
|
- name: Archive production artifacts
|
2022-05-17 11:04:53 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-11-29 15:58:18 +03:00
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: tests-alpine-x64-artifacts
|
|
|
|
path: |
|
2023-01-23 10:20:45 +03:00
|
|
|
./**/*.log
|
2021-11-29 15:58:18 +03:00
|
|
|
|
2022-04-29 18:27:17 +03:00
|
|
|
test-macos-x64:
|
2021-01-30 00:29:51 +03:00
|
|
|
runs-on: macos-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-11-25 12:25:00 +03:00
|
|
|
rust: [stable]
|
2021-01-30 00:29:51 +03:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-05-17 11:04:49 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-11-03 18:10:38 +03:00
|
|
|
with:
|
|
|
|
ref: ${{ inputs.branch }}
|
2021-02-01 23:49:34 +03:00
|
|
|
- name: Environment
|
2022-07-30 05:49:56 +03:00
|
|
|
run: bin/environment.sh
|
|
|
|
- name: Install Rust
|
|
|
|
run: bin/install_rust_latest.sh
|
|
|
|
- name: Test Prerequisites
|
|
|
|
run: bin/test/test_prerequisites.sh
|
2022-10-04 16:31:38 +03:00
|
|
|
- name: Tests units
|
|
|
|
run: |
|
|
|
|
bin/test/test_unit.sh
|
2023-03-03 18:49:48 +03:00
|
|
|
bin/release/release.sh
|
2022-10-04 16:31:38 +03:00
|
|
|
echo "PATH=${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
|
|
|
|
- name: Integration Tests
|
2022-07-30 05:49:56 +03:00
|
|
|
run: bin/test/test_integ.sh
|
2023-01-23 10:20:45 +03:00
|
|
|
- name: find artifacts
|
|
|
|
run: |
|
|
|
|
pwd
|
|
|
|
find . -name "*.log"
|
2021-02-03 22:31:09 +03:00
|
|
|
- name: Archive production artifacts
|
2022-05-17 11:04:53 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-02-03 22:31:09 +03:00
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
2022-04-29 18:27:17 +03:00
|
|
|
name: tests-macos-${{ matrix.rust }}-artifacts
|
2021-02-06 14:15:32 +03:00
|
|
|
path: |
|
2023-01-23 10:20:45 +03:00
|
|
|
./**/*.log
|
2021-02-23 19:37:41 +03:00
|
|
|
|
2021-11-25 12:25:00 +03:00
|
|
|
test-windows-x64:
|
2021-02-23 19:37:41 +03:00
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-11-25 12:25:00 +03:00
|
|
|
rust: [stable]
|
2021-02-23 19:37:41 +03:00
|
|
|
env:
|
|
|
|
VCPKGRS_DYNAMIC: 1
|
|
|
|
steps:
|
|
|
|
- name: Set git to use LF
|
|
|
|
run: |
|
|
|
|
git config --global core.autocrlf false
|
2022-11-03 18:10:38 +03:00
|
|
|
git config --global core.eol lf
|
2021-02-23 19:37:41 +03:00
|
|
|
- name: Checkout repository
|
2022-05-19 17:11:07 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-11-03 18:10:38 +03:00
|
|
|
with:
|
|
|
|
ref: ${{ inputs.branch }}
|
2022-12-29 00:42:27 +03:00
|
|
|
# - name: Cache
|
|
|
|
# uses: actions/cache@v3
|
|
|
|
# with:
|
|
|
|
# path: C:\vcpkg\installed
|
|
|
|
# key: ${{ runner.os }}-test-windows-x64-${{ github.sha }}
|
|
|
|
# restore-keys: ${{ runner.os }}-test-windows-x64-
|
2021-02-23 19:37:41 +03:00
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
profile: minimal
|
|
|
|
- name: Environment
|
2022-09-27 10:04:21 +03:00
|
|
|
run: .\bin\environment.ps1
|
|
|
|
- name: Install Prerequisites
|
|
|
|
run: .\bin\install_prerequisites_windows.ps1
|
2022-09-23 10:21:44 +03:00
|
|
|
- name: Build and test
|
2022-09-27 10:04:21 +03:00
|
|
|
run: .\bin\test\test.ps1
|
2021-02-23 19:37:41 +03:00
|
|
|
- name: Archive production artifacts
|
2022-05-17 11:04:53 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-02-23 19:37:41 +03:00
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: tests-win64-${{ matrix.rust }}-artifacts
|
|
|
|
path: |
|
2023-01-23 10:20:45 +03:00
|
|
|
./**/*.log
|
2022-10-25 15:01:53 +03:00
|
|
|
|