mirror of
https://github.com/frohoff/ysoserial.git
synced 2026-09-26 17:01:53 +08:00
test
This commit is contained in:
@@ -7,9 +7,6 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: which node && node --version && env
|
|
||||||
- run: docker run --rm vulhub/java:7u21-jdk java -version
|
|
||||||
|
|
||||||
- if: ${{ env.ACT }} # act workaround
|
- if: ${{ env.ACT }} # act workaround
|
||||||
run: sudo chown -R runner:runner /var/run/act
|
run: sudo chown -R runner:runner /var/run/act
|
||||||
|
|
||||||
@@ -89,6 +86,7 @@ jobs:
|
|||||||
docker run --rm -v $(pwd):/app vulhub/java:$v java -cp '/app/jar/ysoserial.jar' -DforceTests=true ysoserial.test.payloads.PayloadsTest >> out.txt
|
docker run --rm -v $(pwd):/app vulhub/java:$v java -cp '/app/jar/ysoserial.jar' -DforceTests=true ysoserial.test.payloads.PayloadsTest >> out.txt
|
||||||
done
|
done
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: out-${{ matrix.version }}
|
name: out-${{ matrix.version }}
|
||||||
path: out.txt
|
path: out.txt
|
||||||
@@ -104,7 +102,6 @@ jobs:
|
|||||||
- run: pip install pytablewriter
|
- run: pip install pytablewriter
|
||||||
- run: cat out.txt | python artifacts/results/results.py > matrix.md
|
- run: cat out.txt | python artifacts/results/results.py > matrix.md
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
if: always()
|
|
||||||
with:
|
with:
|
||||||
name: out
|
name: out
|
||||||
path: out.txt
|
path: out.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user