mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-14 00:26:44 +00:00
bump node in tests to node 22 since node14 is quite old (#216)
* bump node in tests to node 22 since node14 is quite old * change test contsants
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"state": {},
|
"state": {},
|
||||||
"args": {
|
"args": {
|
||||||
"container": {
|
"container": {
|
||||||
"image": "node:14.16",
|
"image": "node:22",
|
||||||
"workingDirectory": "/__w/repo/repo",
|
"workingDirectory": "/__w/repo/repo",
|
||||||
"createOptions": "--cpus 1",
|
"createOptions": "--cpus 1",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"args": {
|
"args": {
|
||||||
"image": "node:14.16",
|
"image": "node:22",
|
||||||
"dockerfile": null,
|
"dockerfile": null,
|
||||||
"entryPointArgs": [
|
"entryPointArgs": [
|
||||||
"-e",
|
"-e",
|
||||||
|
|||||||
@@ -394,7 +394,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: test
|
- name: test
|
||||||
image: node:14.16
|
image: node:22
|
||||||
- name: job
|
- name: job
|
||||||
image: ubuntu:latest`
|
image: ubuntu:latest`
|
||||||
)
|
)
|
||||||
@@ -407,7 +407,7 @@ spec:
|
|||||||
|
|
||||||
it('should merge container spec', () => {
|
it('should merge container spec', () => {
|
||||||
const base = {
|
const base = {
|
||||||
image: 'node:14.16',
|
image: 'node:22',
|
||||||
name: 'test',
|
name: 'test',
|
||||||
env: [
|
env: [
|
||||||
{
|
{
|
||||||
@@ -462,7 +462,7 @@ spec:
|
|||||||
const base = {
|
const base = {
|
||||||
containers: [
|
containers: [
|
||||||
{
|
{
|
||||||
image: 'node:14.16',
|
image: 'node:22',
|
||||||
name: 'test',
|
name: 'test',
|
||||||
env: [
|
env: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ describe('Prepare job', () => {
|
|||||||
|
|
||||||
// job container
|
// job container
|
||||||
expect(got.spec?.containers[0].name).toBe(JOB_CONTAINER_NAME)
|
expect(got.spec?.containers[0].name).toBe(JOB_CONTAINER_NAME)
|
||||||
expect(got.spec?.containers[0].image).toBe('node:14.16')
|
expect(got.spec?.containers[0].image).toBe('node:22')
|
||||||
expect(got.spec?.containers[0].command).toEqual(['sh'])
|
expect(got.spec?.containers[0].command).toEqual(['sh'])
|
||||||
expect(got.spec?.containers[0].args).toEqual(['-c', 'sleep 50'])
|
expect(got.spec?.containers[0].args).toEqual(['-c', 'sleep 50'])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user