Commit 26b92e3f authored by Daz DeBoer's avatar Daz DeBoer
Browse files

Separate unit-test data from integ-test samples

- Upgraded `samples/basic` to use latest Gradle version.
parent 643092d2
Loading
Loading
Loading
Loading
+4 −4
Changes for .github/workflows/prod.yml: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -17,17 +17,17 @@ jobs:
    - name: Test use Gradle wrapper
      uses: ./
      with:
        build-root-directory: __tests__/data/basic
        build-root-directory: __tests__/samples/basic
        arguments: test
    - name: Test custom wrapper location
      uses: ./
      with:
        build-root-directory: __tests__/data/basic
        wrapper-directory: __tests__/data/basic
        build-root-directory: __tests__/samples/basic
        wrapper-directory: __tests__/samples/basic
        arguments: test
    - name: Test use defined Gradle version
      uses: ./
      with:
        gradle-version: rc
        build-root-directory: __tests__/data/basic
        build-root-directory: __tests__/samples/basic
        arguments: test
+1 −1
Changes for __tests__/cache-wrapper.test.ts: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ describe('cache', () => {
        it('from wrapper properties file', async () => {
            const version = cacheWrapper.extractGradleWrapperSlugFrom(
                path.resolve(
                    '__tests__/data/basic/gradle/wrapper/gradle-wrapper.properties'
                    '__tests__/data/cache-wrapper-test/gradle-wrapper.properties'
                )
            )
            expect(version).toBe('6.6.1-bin')
+3 −3
Changes for __tests__/crypto-utils.test.ts: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ describe('crypto-utils', () => {
    describe('can hash', () => {
        it('a directory', async () => {
            const hash = await cryptoUtils.hashFiles(
                path.resolve('__tests__/data/basic/gradle')
                path.resolve('__tests__/data/crypto-utils-test/gradle')
            )
            expect(hash).toBe(
                process.platform === 'win32'
@@ -15,7 +15,7 @@ describe('crypto-utils', () => {
        })
        it('a directory with a glob', async () => {
            const hash = await cryptoUtils.hashFiles(
                path.resolve('__tests__/data/basic/'),
                path.resolve('__tests__/data/crypto-utils-test/'),
                ['gradle/**']
            )
            expect(hash).toBe(
@@ -26,7 +26,7 @@ describe('crypto-utils', () => {
        })
        it('a directory with globs', async () => {
            const hash = await cryptoUtils.hashFiles(
                path.resolve('__tests__/data/basic/'),
                path.resolve('__tests__/data/crypto-utils-test/'),
                ['**/*.gradle', 'gradle/**']
            )
            expect(hash).toBe(
Loading