-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updating tooling dependencies * Removing Gitpod YAML * Making Action run more in CI * Backing out change
- Loading branch information
Showing
10 changed files
with
19,698 additions
and
19,423 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
import * as process from 'process'; | ||
import * as cp from 'child_process'; | ||
import * as path from 'path'; | ||
import os from 'os'; | ||
|
||
// shows how the runner will run a javascript action with env / stdout protocol | ||
test('test runs', () => { | ||
process.env['ARCH'] = 'darwin'; | ||
process.env['GITHUB_REPOSITORY'] = 'quizlet/cd-infra'; | ||
process.env['INPUT_GITHUB-TOKEN'] = '500'; | ||
process.env['INPUT_ARGOCD-VERSION'] = 'v1.6.1'; | ||
process.env['INPUT_ARGOCD-SERVER-URL'] = 'argocd.qzlt.io'; | ||
process.env['INPUT_ARGOCD-TOKEN'] = 'foo'; | ||
const ip = path.join(__dirname, '..', 'lib', 'main.js'); | ||
const options: cp.ExecSyncOptions = { | ||
env: process.env | ||
}; | ||
console.log(cp.execSync(`node ${ip}`, options).toString()); | ||
}); | ||
|
||
afterAll(() => { | ||
cp.execSync('rm -rf bin'); | ||
describe('main', () => { | ||
// shows how the runner will run a javascript action with env / stdout protocol | ||
test('test runs', async () => { | ||
process.env['RUNNER_TEMP'] = os.tmpdir(); | ||
process.env['GITHUB_REPOSITORY'] = 'quizlet/cd-infra'; | ||
process.env['INPUT_GITHUB-TOKEN'] = '500'; | ||
process.env['INPUT_ARGOCD-VERSION'] = 'v1.6.1'; | ||
process.env['INPUT_ARGOCD-SERVER-URL'] = 'argocd.qzlt.io'; | ||
process.env['INPUT_ARGOCD-TOKEN'] = 'foo'; | ||
expect(import('../src/main')).resolves.toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.