Merge pull request #37 from runs-on/fix/test-container

Add test for container job
pull/1662/head
Cyril Rohr 2025-06-24 11:56:32 +02:00 committed by GitHub
commit 4a6341e149
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 0 deletions

View File

@ -76,3 +76,20 @@ jobs:
- name: Verify cache files outside working directory
shell: bash
run: __tests__/verify-cache-files.sh ${{ runner.os }} ~/test-cache
test-container:
runs-on: runs-on,runner=2cpu-linux-arm64
container:
image: ubuntu:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test in container
run: |
__tests__/create-cache-files.sh Linux test-cache
__tests__/verify-cache-files.sh Linux test-cache
- name: Save cache
uses: ./
with:
key: test-container-${{ github.run_id }}
path: test-cache