mirror of
https://github.com/rehlds/testdemos.git
synced 2025-03-04 09:35:33 +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:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build container
|
||||
run: docker build -t $imageName .
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: .
|
||||
key: ${{ matrix.test.type }}
|
||||
|
||||
- name: Prepare
|
||||
working-directory: ./testdemos_files
|
||||
run: rsync -a deps/${{ matrix.test.type }}/* .
|
||||
|
||||
- name: Build container
|
||||
run: docker build -t $imageName .
|
||||
|
||||
- name: Run test
|
||||
env:
|
||||
demo: ${{ matrix.test.file }}
|
||||
desc: ${{ matrix.test.desc }}
|
||||
run: |
|
||||
docker run \
|
||||
-t $imageName \
|
||||
--env demo \
|
||||
--env desc \
|
||||
-t $imageName \
|
||||
./runTest.sh
|
||||
|
||||
build:
|
||||
|
Loading…
x
Reference in New Issue
Block a user