mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-06-07 16:56:12 +02:00
Separate unit-test data from integ-test samples
- Upgraded `samples/basic` to use latest Gradle version.
This commit is contained in:
parent
643092d2fc
commit
26b92e3f5c
22 changed files with 340 additions and 8 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue