Update to version 3 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
gtest: | |
name: gtest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential cmake libssl-dev openssl | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install GoogleTest | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
sudo make install | |
working-directory: test/gtest/googletest | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
make -j4 | |
working-directory: test/gtest | |
- name: Run tests | |
run: ./RunFilteredTests.sh ${{ matrix.protocol }} ${{ matrix.mode }} ${{ matrix.certType }} | |
working-directory: test/gtest | |
- name: Upload test results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results-gtest_${{ matrix.protocol }}-${{ matrix.mode }}-${{ matrix.certType }} | |
path: test/gtest/results.json | |
if-no-files-found: error | |
strategy: | |
matrix: | |
protocol: ["tcp", "tls"] | |
mode: ["continuous", "fragmentation", "general"] | |
certType: ["ec", "rsa"] |