From 76ae5ef8c7ceb9ecd1a79ead4564112b35bea837 Mon Sep 17 00:00:00 2001 From: Sebastian Warnholz Date: Sun, 1 Feb 2026 20:29:09 +0000 Subject: [PATCH 1/3] Add devcontainer --- .devcontainer/devcontainer.json | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..ad5473d --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,36 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node +{ + "name": "Node.js & TypeScript", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/typescript-node:4-24-bookworm", + "features": { + "ghcr.io/devcontainers/features/python:1": { + "installTools": true, + "version": "latest" + }, + "ghcr.io/stu-bell/devcontainer-features/open-code:0": {} + }, + "customizations": { + "vscode": { + "extensions": [ + "kahole.magit" + ] + } + } + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "yarn install", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} From 6b5767deeff4bd7a773ce3512a6bd90d969a4835 Mon Sep 17 00:00:00 2001 From: Sebastian Warnholz Date: Sun, 1 Feb 2026 20:41:52 +0000 Subject: [PATCH 2/3] Add action to run tests automatically on PRs --- .github/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a782e55 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: Test Extension + +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + - run: npm ci + - run: xvfb-run -a npm test From 4d27e32d93e5534ed0e48c8bb008f81a39ff6375 Mon Sep 17 00:00:00 2001 From: Sebastian Warnholz Date: Sun, 1 Feb 2026 21:09:15 +0000 Subject: [PATCH 3/3] Add lint to pipeline --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a782e55..ae95542 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,4 +18,7 @@ jobs: node-version: '20' cache: 'npm' - run: npm ci - - run: xvfb-run -a npm test + - name: Run ESLint + run: npm run lint + - name: Run Tests + run: xvfb-run -a npm test