File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181 dotnet list package --vulnerable --include-transitive 2>&1 | tee vuln.log
8282 echo "Analyze dotnet list package..."
8383 ! grep -q -i "has the following vulnerable packages" vuln.log
84+
85+ conformance-tests :
86+ name : Conformance Tests
87+ runs-on : ${{ matrix.os }}
88+ strategy :
89+ fail-fast : false
90+ matrix :
91+ include :
92+ - os : macos-latest
93+ platform : darwin_arm64
94+ - os : ubuntu-latest
95+ platform : linux_amd64
96+
97+ env :
98+ TEST_VERSION : ' 0.0.1'
99+ TEST_REPO : ' stringintech/kernel-bindings-tests'
100+ TEST_DIR : ' .conformance-tests'
101+
102+ steps :
103+ - name : Checkout code
104+ uses : actions/checkout@v5
105+
106+ - name : Setup .NET
107+ uses : actions/setup-dotnet@v5
108+ with :
109+ dotnet-version : ' 9.0.x'
110+
111+ - name : Build conformance handler
112+ run : |
113+ dotnet build tools/kernel-bindings-test-handler/kernel-bindings-test-handler.csproj -c Release
114+ dotnet publish tools/kernel-bindings-test-handler/kernel-bindings-test-handler.csproj -c Release -o handler-bin
115+
116+ - name : Download test runner
117+ run : |
118+ mkdir -p ${{ env.TEST_DIR }}
119+ DOWNLOAD_URL="https://github.com/${{ env.TEST_REPO }}/releases/download/v${{ env.TEST_VERSION }}/kernel-bindings-tests_${{ env.TEST_VERSION }}_${{ matrix.platform }}.tar.gz"
120+ echo "Downloading from: $DOWNLOAD_URL"
121+ curl --fail -L -o ${{ env.TEST_DIR }}/test-runner.tar.gz "$DOWNLOAD_URL"
122+ tar -xzf ${{ env.TEST_DIR }}/test-runner.tar.gz -C ${{ env.TEST_DIR }}
123+ chmod +x ${{ env.TEST_DIR }}/runner
124+
125+ - name : Run conformance tests
126+ run : |
127+ ${{ env.TEST_DIR }}/runner --handler handler-bin/kernel-bindings-test-handler
128+
129+
You can’t perform that action at this time.
0 commit comments