Skip to content

Commit

Permalink
chore(ci): upgrade to newer windows runner (#5216)
Browse files Browse the repository at this point in the history
* chore: upgrade to newer windows runner

* fix: use linux based hello-world image in windows runners UNIFY-128

---------

Co-authored-by: adrobuta <alexandra.drobut@snyk.io>
  • Loading branch information
PeterSchafer and adrobuta committed May 8, 2024
1 parent 1fbad58 commit 1e8b962
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ executors:
resource_class: macos.m1.medium.gen1
win-server2022-amd64:
machine:
image: windows-server-2022-gui:2023.07.1
image: windows-server-2022-gui:2024.01.1
resource_class: windows.large
shell: powershell
win-server2019-amd64:
Expand Down
Binary file added test/fixtures/docker/hello-world-linux.tar
Binary file not shown.
8 changes: 4 additions & 4 deletions test/jest/acceptance/cli-args.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ describe('cli args', () => {
const sarifPath = 'snyk-direct-sarif-test-output.json';

const { code, stdout } = await runSnykCLI(
`container test hello-world --file=Dockerfile --sarif-file-output=${sarifPath} --json-file-output=${jsonPath}`,
`container test docker-archive:hello-world-linux.tar --file=Dockerfile --sarif-file-output=${sarifPath} --json-file-output=${jsonPath}`,
{
env,
cwd: project.path(),
Expand All @@ -398,7 +398,7 @@ describe('cli args', () => {
const sarifPath = 'snyk-direct-sarif-test-output.json';

const { code, stdout } = await runSnykCLI(
`container test hello-world --sarif --file=Dockerfile --sarif-file-output=${sarifPath}`,
`container test docker-archive:hello-world-linux.tar --sarif --file=Dockerfile --sarif-file-output=${sarifPath}`,
{
env,
cwd: project.path(),
Expand All @@ -417,7 +417,7 @@ describe('cli args', () => {
const sarifPath = 'snyk-direct-sarif-test-output.json';

const { code } = await runSnykCLI(
`container test hello-world --file=Dockerfile --sarif-file-output=${sarifPath}`,
`container test docker-archive:hello-world-linux.tar --file=Dockerfile --sarif-file-output=${sarifPath}`,
{
env,
cwd: project.path(),
Expand All @@ -435,7 +435,7 @@ describe('cli args', () => {
const sarifPath = 'snyk-direct-sarif-test-output.json';

const { code, stdout } = await runSnykCLI(
`container test hello-world --json --file=Dockerfile --sarif-file-output=${sarifPath}`,
`container test docker-archive:hello-world-linux.tar --json --file=Dockerfile --sarif-file-output=${sarifPath}`,
{
env,
cwd: project.path(),
Expand Down

0 comments on commit 1e8b962

Please sign in to comment.