mirror of
https://github.com/frohoff/ysoserial.git
synced 2026-09-21 22:50:46 +08:00
test
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
name: test
|
name: test
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
|
# TODO cache build output by commit
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -50,7 +51,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- id: get-versions
|
- id: get-versions
|
||||||
# TODO paging
|
# TODO paging
|
||||||
run: echo "::set-output name=versions::$(curl -s https://hub.docker.com/v2/repositories/vulhub/java/tags/?page_size=100 | jq -rc [.results[].name])"
|
run: echo "::set-output name=versions::$(curl -s https://hub.docker.com/v2/repositories/vulhub/java/tags/?page_size=100 | jq -rc '[[.results[].name] | _nwise(3) | join(\" \") ]'"
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
versions: ${{ steps.get-versions.outputs.versions }}
|
versions: ${{ steps.get-versions.outputs.versions }}
|
||||||
@@ -61,10 +62,10 @@ jobs:
|
|||||||
- build
|
- build
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# version: ${{ fromJson(needs.set-matrix.outputs.versions) }} # broken in act
|
version: ${{ fromJson(needs.set-matrix.outputs.versions) }} # broken in act
|
||||||
version:
|
# version:
|
||||||
- 7u21-jdk 7u25-jdk
|
# - 7u21-jdk 7u25-jdk
|
||||||
- 7u40-jdk
|
# - 7u40-jdk
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# container:
|
# container:
|
||||||
# image: vulhub/java:${{ matrix.version }}
|
# image: vulhub/java:${{ matrix.version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user