mirror of
https://github.com/rehlds/testdemos.git
synced 2025-03-04 17:45:32 +03:00
add cache
This commit is contained in:
parent
5075db0d8b
commit
9bddec06b8
11
.github/workflows/Build.yml
vendored
11
.github/workflows/Build.yml
vendored
@ -39,22 +39,27 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build container
|
- uses: actions/cache@v4
|
||||||
run: docker build -t $imageName .
|
with:
|
||||||
|
path: .
|
||||||
|
key: ${{ matrix.test.type }}
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
working-directory: ./testdemos_files
|
working-directory: ./testdemos_files
|
||||||
run: rsync -a deps/${{ matrix.test.type }}/* .
|
run: rsync -a deps/${{ matrix.test.type }}/* .
|
||||||
|
|
||||||
|
- name: Build container
|
||||||
|
run: docker build -t $imageName .
|
||||||
|
|
||||||
- name: Run test
|
- name: Run test
|
||||||
env:
|
env:
|
||||||
demo: ${{ matrix.test.file }}
|
demo: ${{ matrix.test.file }}
|
||||||
desc: ${{ matrix.test.desc }}
|
desc: ${{ matrix.test.desc }}
|
||||||
run: |
|
run: |
|
||||||
docker run \
|
docker run \
|
||||||
-t $imageName \
|
|
||||||
--env demo \
|
--env demo \
|
||||||
--env desc \
|
--env desc \
|
||||||
|
-t $imageName \
|
||||||
./runTest.sh
|
./runTest.sh
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user