Commit Graph

19 Commits

Author SHA1 Message Date
Andrew Eisenberg e5c3375225 Refactor handling of feature flags
This commit centralizes how feature flags are handled. All feature flags
must now add an entry in the `featureFlagConfig` dictionary. This
dictionary associates the flag with an environment variable name and
optionally a minimum version for CodeQL.

The new logic is:

- if the environment variable is set to false: disabled
- if the minimum version requirement specified and met: disabled
- if the environment variable is set to true: enable
- Otherwise check feature flag enablement from the server
2022-10-05 16:40:56 -07:00
Henry Mercer c15604920a Workaround PATH casing issues on Windows 2022-06-29 18:59:32 +01:00
Andrew Eisenberg d068f5372a Fix failing tests 2022-03-25 10:00:47 -07:00
Henry Mercer 254816c2d2 Stub feature flag API endpoint in tests 2021-12-16 13:39:18 +00:00
Henry Mercer 04671efa1d Add support for feature flagging via the GitHub API 2021-12-15 13:16:33 +00:00
Henry Mercer 93c9da2c2e Reference exported names via import *.
Rather than via properties on default exports — see
https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md
2021-08-11 13:17:04 +01:00
Edoardo Pirovano d9849b8ca1 Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
Robert 8c91ba83e2 Introduce our own toolcache implementation for use by the runnner 2021-04-22 15:31:15 +01:00
Chris Raynor a184d50a26 Running lint-fix 2020-09-14 10:44:43 +01:00
Robert Brignull f5d645fc73 Fix use of wrong URL 2020-08-26 16:20:36 +01:00
Robert Brignull 34b372292b commit node_modules and generated files 2020-08-11 12:43:27 +01:00
Robert 0446cb0aff address comments 2020-07-21 12:19:37 +01:00
Robert 29cf06569d reset environment variables between tests 2020-07-21 11:39:55 +01:00
Robert Brignull da3d6d25eb move config parsing earlier + add to codeql search path 2020-07-13 14:49:01 +01:00
Robert Brignull 0086c2ecdb use @actions/github 2020-07-06 16:25:26 +01:00
Robert Brignull 52e52435f7 handle Uint8Array 2020-06-23 17:17:11 +01:00
Robert Brignull 02776246bf Only output on failing tests 2020-06-23 14:36:40 +01:00
Sam Partington 8622312249 Update JavaScript with newer comment 2020-06-22 17:20:29 +01:00
Sam Partington c0c67ce80f Reduce debug output in tests 2020-06-22 17:13:47 +01:00