1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
Commit Graph

64 Commits

Author SHA1 Message Date
Ivar Conradi Østhus
3c91acca4c
fix: coverage action 2022-05-20 16:48:13 +02:00
Ivar Conradi Østhus
51c1c790b4
fix: inline coverage action script commands 2022-05-20 16:41:43 +02:00
Ivar Conradi Østhus
477779069d
fix: switch gh token for coverage action 2022-05-20 16:23:42 +02:00
Thomas Heartman
312b5d42e8
meta: add external PRs to project board
The `pull_request` hook runs in the context of the proposed changes. That means that for forks, this action won't have access to the required secrets for it to complete. As such, PRs from outside contributors won't work correctly.

The `pull_request_target` hook, however, runs in the context of the target branch, and thus has all the permissions it needs. The [github docs for this hook](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target) also indicate that this is the way to go:

> This event allows your workflow to do things like label or comment on pull requests from forks. Avoid using this event if you need to build or run code from the pull request.

## Interesting note for PRs

It seems that when this change is proposed as a PR, the expected action (_add new item to project board_) does not run. However, this does not affect other new PRs. Also, after merging it works as expected, for both external and internal contributors.
2022-05-20 15:21:54 +02:00
Ivar Conradi Østhus
4eaec6e1d3
fix: add gh creds to coverage action 2022-05-20 12:25:17 +02:00
Ivar Conradi Østhus
f681f83706
fix: coverage action 2022-05-20 12:19:08 +02:00
Ivar Conradi Østhus
b25435052b
fix: coverage build for main should be a seperate workflow 2022-05-20 12:09:16 +02:00
Ivar Conradi Østhus
b16e842849
fix: auto-push coverage 2022-05-20 12:00:30 +02:00
Ivar Conradi Østhus
3d6cfb6582
fix: do not ignore coverage/report.json 2022-05-20 11:44:53 +02:00
Ivar Conradi Østhus
7ddb9f70eb
fix: more debugigng to jest coverage action (POC) 2022-05-20 11:38:54 +02:00
Ivar Conradi Østhus
4869ee8266
fix: more debug 2022-05-20 11:37:43 +02:00
Ivar Conradi Østhus
efb69e6474
fix: add debug step 2022-05-20 11:30:20 +02:00
Ivar Conradi Østhus
34c4f5bd84
fix: only specify base-cov-file for jest action (poc) 2022-05-20 11:20:09 +02:00
Ivar Conradi Østhus
d6f0d83a97
fix: specify coverage files to use for jest pr action (poc) 2022-05-20 11:16:44 +02:00
Thomas Heartman
119d958e7c fix: add version information for reusable workflow
without this, the workflow won't run
2022-05-11 11:38:39 +02:00
Thomas Heartman
c260f90094
chore: Add workflow file to auto-add items to project board (#1588)
This change adds a workflow file that references the reusable workflow
in the unleash/.github repo. It should (if all goes well),
automatically add new issues and prs to the project board.
2022-05-11 11:10:16 +02:00
Ivar Conradi Østhus
25b3d57c3e
fix: pr-build use pull_request_target event 2022-04-28 19:38:19 +02:00
Ivar Conradi Østhus
dc06c2c90d
fix: create separate build for forked PRs 2022-04-25 13:12:50 +02:00
sighphyre
01da74014a fix: trim out test trigger for svg gen 2022-04-22 10:40:23 +02:00
sighphyre
b72ca55f65 feat: use svg generator fork to create contributors and extend limit to 500 2022-04-22 10:36:29 +02:00
sighphyre
aa1f97889c
Update .github/workflows/update_contributors.yaml
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2022-04-21 14:11:48 +02:00
sighphyre
7c5107e680 feat: add contributors image generation workflow 2022-04-21 13:50:08 +02:00
Ivar Conradi Østhus
2f638334b1
fix: release script syntax 2022-04-20 23:45:02 +02:00
Ivar Conradi Østhus
636f03257f
fix: update npm publish script to select correct dist-tag 2022-04-20 23:38:55 +02:00
sighphyre
9101884c5e feat: add no response action config 2022-04-20 08:30:13 +02:00
renovate[bot]
86f03ed3a3
chore(deps): update actions/setup-node action to v3 (#1396)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-06 21:43:29 +02:00
renovate[bot]
19db5bb857
chore(deps): update actions/checkout action to v3 (#1407)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-06 21:43:00 +02:00
Ivar Conradi Østhus
fe45c69fb6
chore: add check-relase script as part of perversion validations. 2022-04-06 20:34:15 +02:00
Ivar Conradi Østhus
f5257b32fa
fix: update release script 2022-04-05 21:18:46 +02:00
Ivar Conradi Østhus
e00d5532ad
fix: add release script 2022-04-05 21:09:03 +02:00
Thomas Heartman
69c29a6cd8 chore: new doc env vars to doc workflows 2022-03-02 12:31:06 +01:00
Ivar Conradi Østhus
0e8bb74e93
fix: jest-coverage-report-action disable annotations 2022-02-02 22:18:50 +01:00
Thomas Heartman
14081c014e chore(workflows): update with new branch names 2021-12-23 14:12:19 +01:00
renovate[bot]
769e8693b3
chore(deps): update metcalfc/changelog-generator action to v3 (#1121)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-25 20:08:33 +01:00
Christopher Kolstad
6c6001619c
Feat/variant api (#1119)
Add a new .../:feature/variants API

This adds
- `GET /api/admin/projects/:projectId/features/:featureName/variants` which returns 
```json
{ version: '1', variants: IVariant[] }
```
- `PATCH /api/admin/projects/:projectId/features/:featureName/variants` which accepts a json patch set and updates the feature's variants field and then returns 
```json
{ version: '1', variants: IVariant[] }
```
- `PUT /api/admin/projects/:projectId/features/:featureName/variants`
 which accepts a IVariant[] and overwrites the current variants list for the feature defined in :featureName and returns
```json
{ version: '1', variants: IVariant[] }

- This also makes sure the total weight of all variants is == 1000
- Validates that there is at least 1 'variable' variant if there are variants
- Validates that 'fix' variants total weight can't exceed 1000
- Adds tests for all these invariants.


Co-authored-by: Simon Hornby <simon@getunleash.ai>
2021-11-24 13:08:04 +01:00
Christopher Kolstad
1848d8d4eb
task: add a workflow that validates docs for PRs (#1123) 2021-11-23 15:19:59 +01:00
renovate[bot]
dc1df85dce
chore(deps): update metcalfc/changelog-generator action to v2 (#1062)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 20:14:02 +02:00
Ivar Conradi Østhus
ffec4f6342 fix: rename websitev2 to website 2021-10-26 11:25:19 +02:00
Renovate Bot
985f5cd007 chore(deps): update metcalfc/changelog-generator action to v1.0.1 2021-10-12 11:36:18 +00:00
Ivar Conradi Østhus
14e09fe6aa
fix: modify actions for PRs 2021-10-06 22:16:58 +02:00
Ivar Conradi Østhus
e76345e243
fix: custom test-script for yart coverage reporter action 2021-10-06 13:09:09 +02:00
Ivar Conradi Østhus
fdffb03fb3
fix: adjust test-script for jest-coverage action 2021-10-06 12:41:50 +02:00
Aneesh Relan
7b034b631c
chore: add jest coverage action for pr builds (#997)
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-10-06 12:31:28 +02:00
renovate[bot]
a85aba86ba
chore(deps): update metcalfc/changelog-generator action to v1 (#982)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-28 12:09:46 +02:00
renovate[bot]
178c5aeaaa
chore(deps): update actions/setup-node action to v2 (#977)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-27 19:21:13 +02:00
Ivar Conradi Østhus
c9a2b3d549
fix: set DEPLOYMENT_BRANCH for docusaurus 2021-09-02 14:36:18 +02:00
Ivar Conradi Østhus
c5b8b2f920
fix: add node v16 as build target
fixes: #871
2021-08-11 12:58:10 +02:00
Christopher Kolstad
a709af1d67
fix: don't build all of unleash just for doc updates 2021-06-04 15:33:47 +02:00
Christopher Kolstad
296804c147
fix: only generate docs if websitev2 subfolders are changed 2021-06-04 11:19:22 +02:00
Christopher Kolstad
406f0554cf
Docusaurusv2 (#864)
feat: Upgraded to Docusaurus v2

closes: #771
2021-06-04 11:17:15 +02:00