Skip to content

Commit

Permalink
update dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
valentincodes committed Jan 6, 2025
1 parent 00bfe1e commit 6c4de36
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as artifact from '@actions/artifact'
import * as config from '../src/config'
import * as execute from '../src/execute'
import * as github from '../src/github'
import type { ActionConfiguration } from '../src/piper'
import type { ActionConfiguration } from '../src/types'

jest.mock('@actions/exec')
jest.mock('@actions/tool-cache')
Expand Down
3 changes: 2 additions & 1 deletion test/docker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import path from 'path'
import * as exec from '@actions/exec'
import * as core from '@actions/core'
import * as sidecar from '../src/sidecar'
import { type ActionConfiguration, internalActionVariables } from '../src/piper'
import { internalActionVariables } from '../src/piper'
import { type ActionConfiguration } from '../src/types'
import {
cleanupContainers,
getOrchestratorEnvVars,
Expand Down
3 changes: 2 additions & 1 deletion test/github.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as toolCache from '@actions/tool-cache'
import * as octokit from '@octokit/core'
import * as core from '@actions/core'

import { downloadPiperBinary, buildPiperFromSource } from '../src/github'
import { downloadPiperBinary } from '../src/github'
import { buildPiperFromSource } from '../src/build'

jest.mock('@actions/core')
jest.mock('@actions/exec')
Expand Down
5 changes: 3 additions & 2 deletions test/piper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as piper from '../src/piper'
import * as config from '../src/config'
import * as execute from '../src/execute'
import * as github from '../src/github'
import * as build from '../src/build'
import * as docker from '../src/docker'
import * as pipelineEnv from '../src/pipelineEnv'
import { GITHUB_COM_API_URL } from '../src/github'
Expand Down Expand Up @@ -41,7 +42,7 @@ describe('Piper', () => {

fs.chmodSync = jest.fn()
jest.spyOn(github, 'downloadPiperBinary').mockReturnValue(Promise.resolve('./piper'))
jest.spyOn(github, 'buildPiperFromSource').mockReturnValue(Promise.resolve('./piper'))
jest.spyOn(build, 'buildPiperFromSource').mockReturnValue(Promise.resolve('./build'))
jest.spyOn(execute, 'executePiper').mockImplementation()
jest.spyOn(config, 'getDefaultConfig').mockImplementation()
jest.spyOn(config, 'readContextConfig').mockImplementation()
Expand Down Expand Up @@ -104,7 +105,7 @@ describe('Piper', () => {

await piper.run()

expect(github.buildPiperFromSource).toHaveBeenCalledWith(inputs['piper-version'])
expect(build.buildPiperFromSource).toHaveBeenCalledWith(inputs['piper-version'])
expect(docker.cleanupContainers).toHaveBeenCalled()
})

Expand Down
3 changes: 2 additions & 1 deletion test/sidecar.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as exec from '@actions/exec'
import * as core from '@actions/core'
import { createNetwork, parseDockerEnvVars, removeNetwork, startSidecar } from '../src/sidecar'
import { type ActionConfiguration, internalActionVariables } from '../src/piper'
import { internalActionVariables } from '../src/piper'
import { type ActionConfiguration } from '../src/types'
import { getOrchestratorEnvVars, getProxyEnvVars, getVaultEnvVars } from '../src/docker'
import * as docker from '../src/docker'

Expand Down

0 comments on commit 6c4de36

Please sign in to comment.