Unverified Commit d9cc0aec authored by Daz DeBoer's avatar Daz DeBoer
Browse files

Remove old caching code

parent 5340f6e8
Loading
Loading
Loading
Loading
−6
Changes for .github/workflows/prod.yml: 0 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -51,12 +51,6 @@ jobs:
        gradle-executable: __tests__/samples/basic/gradlew${{ matrix.script-suffix }}
        build-root-directory: __tests__/samples/no-wrapper
        arguments: help
    - name: Test custom wrapper location (deprecated)
      uses: ./
      with:
        build-root-directory: __tests__/samples/no-wrapper
        wrapper-directory: __tests__/samples/basic
        arguments: help

  dependencies-cache:
    needs: basic-build
−34
Changes for __tests__/cache-utils.test.ts: 0 added lines, 34 removed lines.
Original line number Diff line number Diff line
@@ -2,40 +2,6 @@ import * as cacheUtils from '../src/cache-utils'
import * as path from 'path'

describe('cacheUtils-utils', () => {
    describe('can hash', () => {
        it('a directory', async () => {
            const hash = await cacheUtils.hashFiles(
                path.resolve('__tests__/data/crypto-utils-test/gradle')
            )
            expect(hash).toBe(
                process.platform === 'win32'
                    ? '3364336e94e746ce65a31748a6371b7efd7d499e18ad605c74c91cde0edc0a44'
                    : '63b9f14f65d014e585099c9c274b9dcbddf5cfd1a8978e5a24efb89ff9304348'
            )
        })
        it('a directory with a glob', async () => {
            const hash = await cacheUtils.hashFiles(
                path.resolve('__tests__/data/crypto-utils-test/'),
                ['gradle/**']
            )
            expect(hash).toBe(
                process.platform === 'win32'
                    ? '3364336e94e746ce65a31748a6371b7efd7d499e18ad605c74c91cde0edc0a44'
                    : '63b9f14f65d014e585099c9c274b9dcbddf5cfd1a8978e5a24efb89ff9304348'
            )
        })
        it('a directory with globs', async () => {
            const hash = await cacheUtils.hashFiles(
                path.resolve('__tests__/data/crypto-utils-test/'),
                ['**/*.gradle', 'gradle/**']
            )
            expect(hash).toBe(
                process.platform === 'win32'
                    ? 'd9b66fded38f79f601ce745d64ed726a8df8c0b242b02bcd2c1d331f54742ad6'
                    : 'f42cd10636f09799f4e01cc84e7ae906cc1d9140f1446f8dcd054d19cbc44c2b'
            )
        })
    })
    describe('can truncate args', () => {
        test('handles zero-length string', () => {
            expect(cacheUtils.truncateArgs('')).toBe('')
−33

File deleted.

−35
Changes for action.yml: 0 added lines, 35 removed lines.
Original line number Diff line number Diff line
@@ -4,10 +4,6 @@ description: 'Executes a Gradle build, caching useful state in the GitHub action
# https://help.github.com/en/articles/metadata-syntax-for-github-actions

inputs:
  wrapper-directory:
    description: Path to the Gradle Wrapper directory
    required: false
    deprecationMessage: Use 'gradle-executable' to point to a gradlew[.bat] file in a non-default location
  gradle-executable:
    description: Path to the Gradle executable
    required: false
@@ -32,37 +28,6 @@ inputs:
    description: Whether caching of state in project .gradle dir is enabled, default to 'false'
    required: false
    default: true
  wrapper-cache-enabled:
    description: Whether caching wrapper installation is enabled or not, default to 'true'
    required: false
    default: true
    deprecationMessage: Replaced by 'distributions-cache-enabled' which enables caching for all downloaded Gradle distributions
  dependencies-cache-enabled:
    description: Whether caching dependencies is enabled or not, default to 'false'
    required: false
    default: false
  dependencies-cache-key:
    description: Globs of files to hash in the build root directory, separated by new lines, use best-effort if unset
    required: false
  dependencies-cache-exact:
    description: Whether to restore only if exact match, default to 'false'
    required: false
    default: false
  configuration-cache-enabled:
    description: Whether caching build configuration is enabled or not, default to 'false'
    required: false
    default: false
  configuration-cache-key:
    description: Globs of files to hash in the build root directory, separated by new lines, use best-effort if unset
    required: false
  configuration-cache-exact:
    description: Whether to restore only if exact match, default to 'false'
    required: false
    default: false
  cache-read-only:
    description: When 'true', existing entries will be read from the cache but no entries will be written
    required: false
    default: false

outputs:
  build-scan-url:
−113

File deleted.

Loading