Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/ci/build
Joe Previte c51ff3bce1
refactor: move integration tests to Jest (#5275)
* feat: add installExtension integration test

This adds a new helper function called `runCodeServerCommand` along with
a test for `--install-extension`. We can use this approach for writing
integration tests (i.e. testing a real code-server build, CLI commands,
etc).

* refactor: s/ test:standalone with test:integration

This replaces our integration approach to use Jest instead of a single
bash script. By doing this, we will be able to easily maintain and add
to our integration test suite.

* refactor: filter unit tests

Now that our integration tests also use Jest, we need to update our unit
test script to ignore `test/integration`.

* refactor: add SKIP_SUBMODULE_DEPS to postinstall

* refactor: add SKIP_SUBMODULE_DEPS to postinstall

* fixup!: skip submod deps

* refactor: move runCodeServerCommand into sep. file

When Jest runs a test, it loads all the files and imports for that test.
This means you might be "requiring" code that's unrelated to your tests.

This leads to unexpected errors depending on where the code runs.

Moved this file to avoid GLIBC and other errors relaed to argon2 when
running integration tests in CI.

* fizup: formatting

* fizup: increase timeout

* refactor: use fixture in installExtension test

Instead of relying on a network to install an extension, we use a
fixture - vsix file in the repo. This is also faster.

* feat: add integration test for listExtensions

* chore: ignore integration fixtures

* fixup: formatting

* fixup: remove custom-hacks.css

* fixup: formatting

* Update test/integration/installExtension.test.ts

Co-authored-by: Asher <ash@coder.com>

* Update test/integration/listExtensions.test.ts

Co-authored-by: Asher <ash@coder.com>

* Update test/integration/installExtension.test.ts

Co-authored-by: Asher <ash@coder.com>

* Update test/integration/listExtensions.test.ts

Co-authored-by: Asher <ash@coder.com>

* fixup: contributing integration tests section

* fixup: update ci/readme

* fixup: use RELEASE_PATH in test-integration.sh

* refactor: unzip vsix for listExtensions

* refactor: use exec instead of spawn

* Update docs/CONTRIBUTING.md

Co-authored-by: Asher <ash@coder.com>

* Update test/integration/listExtensions.test.ts

Co-authored-by: Asher <ash@coder.com>

* Update test/integration/listExtensions.test.ts

Co-authored-by: Asher <ash@coder.com>

* Update test/integration/listExtensions.test.ts

Co-authored-by: Asher <ash@coder.com>

* refactor: use different default binary path

* fixup!: formatting

Co-authored-by: Asher <ash@coder.com>
2022-06-24 16:33:38 +00:00
..
build-code-server.sh docs: Update some more links (#4806) 2022-02-01 09:45:19 -07:00
build-lib.sh feat: add test for get_nfpm_arch 2021-09-17 16:07:03 -07:00
build-packages.sh chore: move to patches (#4997) 2022-03-22 15:07:14 -05:00
build-release.sh chore: update Code to 1.68 (#5263) 2022-06-21 21:51:46 +00:00
build-standalone-release.sh chore: move to patches (#4997) 2022-03-22 15:07:14 -05:00
build-vscode.sh chore: update Code to 1.68 (#5263) 2022-06-21 21:51:46 +00:00
clean.sh Add vscode via vendor package. 2021-09-15 14:54:33 -04:00
code-server-nfpm.sh Add NPM package, debs, rpms and refactor CI/build process 2020-05-06 20:25:52 -04:00
code-server-user.service Bundle systemd system unit 2020-08-27 13:20:21 -04:00
code-server.sh docs: Update some more links (#4806) 2022-02-01 09:45:19 -07:00
code-server@.service Fix path of systemd system service in nfpm 2020-08-31 05:22:52 -04:00
nfpm.yaml docs: Update some more links (#4806) 2022-02-01 09:45:19 -07:00
npm-postinstall.sh docs: rename master to main in all github doc links (#5190) 2022-05-11 14:39:57 -07:00
release-github-assets.sh fix(ci): correctly download npm/docker artifacts (#4995) 2022-03-17 11:52:39 -07:00
release-github-draft.sh chore(deps-dev): bump prettier-plugin-sh from 0.6.1 to 0.7.1 (#3680) 2021-06-28 22:06:55 +05:30
release-prep.sh v4.3.0 (#5099) 2022-04-14 15:37:25 -07:00