Add test for action in containerized runner

This commit is contained in:
Daz DeBoer 2022-06-05 21:11:24 -06:00
parent fd1882690a
commit 4ca4968624
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
4 changed files with 74 additions and 16 deletions

View file

@ -5,9 +5,6 @@ on:
inputs:
cache-key-prefix:
type: string
runner-os:
type: string
default: '["ubuntu-latest", "windows-latest", "macos-latest"]'
download-dist:
type: boolean
default: false
@ -19,10 +16,7 @@ env:
jobs:
seed-build:
strategy:
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- name: Set Gradle User Home
run: |
@ -43,10 +37,7 @@ jobs:
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
dependencies-cache:
needs: seed-build
strategy:
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- name: Set Gradle User Home
run: |
@ -67,10 +58,7 @@ jobs:
# Test that the gradle-user-home cache will cache and restore local build-cache
build-cache:
needs: seed-build
strategy:
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- name: Set Gradle User Home
run: |