Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .devcontainer/devcontainer-lock.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"version": "2.5.9",
"resolved": "ghcr.io/devcontainers/features/common-utils@sha256:cb0c4d3c276f157eed17935747e364178d75fee17f55c4e129966f64633deb3a",
"integrity": "sha256:cb0c4d3c276f157eed17935747e364178d75fee17f55c4e129966f64633deb3a"
},
"ghcr.io/devcontainers/features/docker-in-docker:3": {
"version": "3.1.0",
"resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:62e04ec83d944da4fd2830f68a677d1f5466c0654aea1e4baa30232d16029ac1",
"integrity": "sha256:62e04ec83d944da4fd2830f68a677d1f5466c0654aea1e4baa30232d16029ac1"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "1.1.0",
"resolved": "ghcr.io/devcontainers/features/github-cli@sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671",
"integrity": "sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671"
},
"ghcr.io/devcontainers/features/node:2": {
"version": "2.1.0",
"resolved": "ghcr.io/devcontainers/features/node@sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857",
"integrity": "sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857"
}
}
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"version": "2.5.9",
"resolved": "ghcr.io/devcontainers/features/common-utils@sha256:cb0c4d3c276f157eed17935747e364178d75fee17f55c4e129966f64633deb3a",
"integrity": "sha256:cb0c4d3c276f157eed17935747e364178d75fee17f55c4e129966f64633deb3a"
},
"ghcr.io/devcontainers/features/docker-in-docker:4": {
"version": "4.0.0",
"resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:4fa87399214366e320d489991769c4f3f461e1ffe461f54eea78a41b34945bb5",
"integrity": "sha256:4fa87399214366e320d489991769c4f3f461e1ffe461f54eea78a41b34945bb5"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "1.1.0",
"resolved": "ghcr.io/devcontainers/features/github-cli@sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671",
"integrity": "sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671"
},
"ghcr.io/devcontainers/features/node:2": {
"version": "2.1.0",
"resolved": "ghcr.io/devcontainers/features/node@sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857",
"integrity": "sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857"
}
}
}
58 changes: 29 additions & 29 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"name": "ci-github-nodejs",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true
},
"ghcr.io/devcontainers/features/node:2": {},
"ghcr.io/devcontainers/features/docker-in-docker:3": {
"moby": false
},
"ghcr.io/devcontainers/features/github-cli:1": {
"extensions": "nektos/gh-act"
}
},
"remoteEnv": {
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
},
"customizations": {
"vscode": {
"extensions": [
"eamodio.gitlens",
"github.vscode-github-actions",
"github.copilot",
"github.copilot-chat",
"ms-vscode.makefile-tools",
"biomejs.biome"
]
}
}
"name": "ci-github-nodejs",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true
},
"ghcr.io/devcontainers/features/node:2": {},
"ghcr.io/devcontainers/features/docker-in-docker:4": {
"moby": false
},
"ghcr.io/devcontainers/features/github-cli:1": {
"extensions": "nektos/gh-act"
}
},
"remoteEnv": {
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
},
"customizations": {
"vscode": {
"extensions": [
"eamodio.gitlens",
"github.vscode-github-actions",
"github.copilot",
"github.copilot-chat",
"ms-vscode.makefile-tools",
"biomejs.biome"
]
}
}
}
15 changes: 9 additions & 6 deletions .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"threshold": 5,
"ignore": [
"**/tests/npm/coverage/**",
"**/node_modules/**",
"**/.pnpm-store/**"
]
"threshold": 5,
"ignore": [
"**/node_modules/**",
"**/.pnpm-store/**",
"**/pnpm-workspace.yaml",
"**/coverage/**",
"**/package-lock.json",
"**/dist/**"
]
}
13 changes: 13 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"includes": ["**", "!!.devcontainer/devcontainer-lock.json"]
},
"formatter": {
"indentStyle": "space"
}
}
46 changes: 23 additions & 23 deletions tests/npm/package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"name": "test-for-ci-with-npm",
"version": "0.1.0",
"main": "src/index.js",
"scripts": {
"lint": "echo \"lint test\"",
"lint:ci": "echo \"lint:ci test\"",
"build": "mkdir -p dist && echo \"build test\" > dist/test.txt",
"test:ci": "jest --coverage"
},
"dependencies": {
"gatsby": "^5.16.1",
"jest": "^30.4.2",
"nx": "^23.0.1",
"prettier": "^3.9.4",
"storybook": "^10.4.6"
},
"overrides": {
"nx": {
"brace-expansion": "5.0.6",
"follow-redirects": "1.16.0",
"yaml": "2.9.0"
}
}
"name": "test-for-ci-with-npm",
"version": "0.1.0",
"main": "src/index.js",
"scripts": {
"lint": "echo \"lint test\"",
"lint:ci": "echo \"lint:ci test\"",
"build": "mkdir -p dist && echo \"build test\" > dist/test.txt",
"test:ci": "jest --coverage"
},
"dependencies": {
"gatsby": "^5.16.1",
"jest": "^30.4.2",
"nx": "^23.0.1",
"prettier": "^3.9.4",
"storybook": "^10.4.6"
},
"overrides": {
"nx": {
"brace-expansion": "5.0.6",
"follow-redirects": "1.16.0",
"yaml": "2.9.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/npm/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function sample() {
return "sample";
return "sample";
}

module.exports = { sample };
8 changes: 4 additions & 4 deletions tests/npm/src/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const index = require("./index");

describe("sample function", () => {
it('should return "sample"', () => {
const result = index.sample();
expect(result).toBe("sample");
});
it('should return "sample"', () => {
const result = index.sample();
expect(result).toBe("sample");
});
});
30 changes: 15 additions & 15 deletions tests/pnpm-package-manager/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "test-for-ci-with-pnpm-in-package-json",
"version": "0.1.0",
"scripts": {
"lint": "echo \"lint test\"",
"build": "mkdir -p dist && echo \"build test\" > dist/test.txt",
"test:ci": "echo \"test CI\""
},
"dependencies": {
"gatsby": "^5.16.1",
"jest": "^30.4.2",
"nx": "^23.0.1",
"prettier": "^3.9.4",
"storybook": "^10.4.6"
},
"packageManager": "pnpm@10.33.0"
"name": "test-for-ci-with-pnpm-in-package-json",
"version": "0.1.0",
"scripts": {
"lint": "echo \"lint test\"",
"build": "mkdir -p dist && echo \"build test\" > dist/test.txt",
"test:ci": "echo \"test CI\""
},
"dependencies": {
"gatsby": "^5.16.1",
"jest": "^30.4.2",
"nx": "^23.0.1",
"prettier": "^3.9.4",
"storybook": "^10.4.6"
},
"packageManager": "pnpm@10.33.0"
}
28 changes: 14 additions & 14 deletions tests/pnpm/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "test-for-ci-with-pnpm",
"version": "0.1.0",
"scripts": {
"lint": "echo \"lint test\"",
"build": "mkdir -p dist && echo \"build test\" > dist/test.txt",
"test:ci": "echo \"test CI\""
},
"dependencies": {
"gatsby": "^5.16.1",
"jest": "^30.4.2",
"nx": "^23.0.1",
"prettier": "^3.9.4",
"storybook": "^10.4.6"
}
"name": "test-for-ci-with-pnpm",
"version": "0.1.0",
"scripts": {
"lint": "echo \"lint test\"",
"build": "mkdir -p dist && echo \"build test\" > dist/test.txt",
"test:ci": "echo \"test CI\""
},
"dependencies": {
"gatsby": "^5.16.1",
"jest": "^30.4.2",
"nx": "^23.0.1",
"prettier": "^3.9.4",
"storybook": "^10.4.6"
}
}
36 changes: 18 additions & 18 deletions tests/yarn/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "test-for-ci-with-yarn",
"version": "0.1.0",
"scripts": {
"lint": "echo \"lint test\"",
"build": "mkdir -p dist && echo \"build test\" > dist/test.txt",
"test:ci": "echo \"test CI\""
},
"dependencies": {
"gatsby": "^5.16.1",
"jest": "^30.4.2",
"nx": "^23.0.1",
"prettier": "^3.9.4",
"storybook": "^10.4.6"
},
"resolutions": {
"nx/brace-expansion": "5.0.6",
"nx/yaml": "2.9.0"
}
"name": "test-for-ci-with-yarn",
"version": "0.1.0",
"scripts": {
"lint": "echo \"lint test\"",
"build": "mkdir -p dist && echo \"build test\" > dist/test.txt",
"test:ci": "echo \"test CI\""
},
"dependencies": {
"gatsby": "^5.16.1",
"jest": "^30.4.2",
"nx": "^23.0.1",
"prettier": "^3.9.4",
"storybook": "^10.4.6"
},
"resolutions": {
"nx/brace-expansion": "5.0.6",
"nx/yaml": "2.9.0"
}
}
Loading