1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
Commit Graph

286 Commits

Author SHA1 Message Date
Ivar Conradi Østhus
ebd53a6ef9
fix: disable building docs (old) 2024-01-31 10:09:32 +01:00
renovate[bot]
77985ec0f3
chore(deps): update actions/cache action to v4 (#5941)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/cache](https://togithub.com/actions/cache) | action | major |
`v3` -> `v4` |

---

### Release Notes

<details>
<summary>actions/cache (actions/cache)</summary>

### [`v4`](https://togithub.com/actions/cache/compare/v3...v4)

[Compare Source](https://togithub.com/actions/cache/compare/v3...v4)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 09:28:53 +02:00
renovate[bot]
6a5ce1f2a0
chore(deps): update lycheeverse/lychee-action action to v1.9.1 (#5935)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action)
| action | patch | `v1.9.0` -> `v1.9.1` |

---

### Release Notes

<details>
<summary>lycheeverse/lychee-action (lycheeverse/lychee-action)</summary>

###
[`v1.9.1`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.9.1):
Version 1.9.1

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.9.0...v1.9.1)

This is a hotfix release which restores the behavior of the `accept`
config parameter.
Integers are accepted again as status codes.

```toml
accept = [200, 201, 202, 203, 429]
```

is equivalent to

```toml
accept = ["200..=203", 429]
```

Integers and strings (e.g. for ranges) can be mixed.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 14:39:33 +00:00
renovate[bot]
aee470a7d6
chore(deps): update actions/setup-node action to v4 (#5891)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/setup-node](https://togithub.com/actions/setup-node) | action
| major | `v3` -> `v4` |

---

### Release Notes

<details>
<summary>actions/setup-node (actions/setup-node)</summary>

### [`v4`](https://togithub.com/actions/setup-node/compare/v3...v4)

[Compare
Source](https://togithub.com/actions/setup-node/compare/v3...v4)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 09:56:41 +02:00
renovate[bot]
f22efdfddb
chore(deps): update actions/upload-artifact action to v4 (#5892)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[actions/upload-artifact](https://togithub.com/actions/upload-artifact)
| action | major | `v3` -> `v4` |

---

### Release Notes

<details>
<summary>actions/upload-artifact (actions/upload-artifact)</summary>

### [`v4`](https://togithub.com/actions/upload-artifact/compare/v3...v4)

[Compare
Source](https://togithub.com/actions/upload-artifact/compare/v3...v4)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 12:05:34 +01:00
renovate[bot]
c6ff931516
chore(deps): update lycheeverse/lychee-action action to v1.9.0 (#5885)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
|
[lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action)
| action | minor | `v1.8.0` -> `v1.9.0` | `v1.9.1` |

---

### Release Notes

<details>
<summary>lycheeverse/lychee-action (lycheeverse/lychee-action)</summary>

###
[`v1.9.0`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.9.0):
Version 1.9.0

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.8.0...v1.9.0)

#### What's Changed

- Document the current directory for the cache argument example by
[@&#8203;theredfish](https://togithub.com/theredfish) in
[https://github.com/lycheeverse/lychee-action/pull/193](https://togithub.com/lycheeverse/lychee-action/pull/193)
- Add `*.rst` glob pattern to defaults by
[@&#8203;kdeldycke](https://togithub.com/kdeldycke) in
[https://github.com/lycheeverse/lychee-action/pull/197](https://togithub.com/lycheeverse/lychee-action/pull/197)
- Automatically pass Github token by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/196](https://togithub.com/lycheeverse/lychee-action/pull/196)
- Always create output file; not only on error by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/199](https://togithub.com/lycheeverse/lychee-action/pull/199)
- Bump actions/checkout from 3 to 4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/lycheeverse/lychee-action/pull/208](https://togithub.com/lycheeverse/lychee-action/pull/208)
- add documentation on using the param when testing local files (as in…
by [@&#8203;tgaff](https://togithub.com/tgaff) in
[https://github.com/lycheeverse/lychee-action/pull/211](https://togithub.com/lycheeverse/lychee-action/pull/211)
- fix: Lychee output to file (fixes
[#&#8203;214](https://togithub.com/lycheeverse/lychee-action/issues/214))
by [@&#8203;LilDrunkenSmurf](https://togithub.com/LilDrunkenSmurf) in
[https://github.com/lycheeverse/lychee-action/pull/215](https://togithub.com/lycheeverse/lychee-action/pull/215)
- Add integration test for custom output paths
([#&#8203;215](https://togithub.com/lycheeverse/lychee-action/issues/215))
by [@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/217](https://togithub.com/lycheeverse/lychee-action/pull/217)
- Add integration tests for absolute output path and `--dump` by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/218](https://togithub.com/lycheeverse/lychee-action/pull/218)

#### New Contributors

- [@&#8203;theredfish](https://togithub.com/theredfish) made their first
contribution in
[https://github.com/lycheeverse/lychee-action/pull/193](https://togithub.com/lycheeverse/lychee-action/pull/193)
- [@&#8203;kdeldycke](https://togithub.com/kdeldycke) made their first
contribution in
[https://github.com/lycheeverse/lychee-action/pull/197](https://togithub.com/lycheeverse/lychee-action/pull/197)
- [@&#8203;tgaff](https://togithub.com/tgaff) made their first
contribution in
[https://github.com/lycheeverse/lychee-action/pull/211](https://togithub.com/lycheeverse/lychee-action/pull/211)
- [@&#8203;LilDrunkenSmurf](https://togithub.com/LilDrunkenSmurf) made
their first contribution in
[https://github.com/lycheeverse/lychee-action/pull/215](https://togithub.com/lycheeverse/lychee-action/pull/215)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1...v1.9.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 22:43:22 +00:00
renovate[bot]
9cf3ae6aab
chore(deps): update akhileshns/heroku-deploy action to v3.13.15 (#5839)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[akhileshns/heroku-deploy](https://togithub.com/akhileshns/heroku-deploy)
| action | minor | `v3.12.14` -> `v3.13.15` |

---

### Release Notes

<details>
<summary>akhileshns/heroku-deploy (akhileshns/heroku-deploy)</summary>

###
[`v3.13.15`](https://togithub.com/AkhileshNS/heroku-deploy/releases/tag/v3.13.15)

[Compare
Source](https://togithub.com/akhileshns/heroku-deploy/compare/v3.13.14...v3.13.15)

Updated node version to "node20" (as "node18" is not supported by GitHub
Actions)

###
[`v3.13.14`](https://togithub.com/AkhileshNS/heroku-deploy/releases/tag/v3.13.14)

[Compare
Source](https://togithub.com/akhileshns/heroku-deploy/compare/v3.12.14...v3.13.14)

Updated node version from 16 to 18 (as 16 is causing problems due to
deprecation)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-10 19:51:41 +00:00
David Leek
17fe264632
chore: remove redundant linting check, lint before test (#5826)
## About the changes

- Removes redundant lint check
- Runs linting before test
2024-01-10 10:27:30 +01:00
renovate[bot]
dcb8b5b5a1
chore(deps): update actions/github-script action to v7 (#5539)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/github-script](https://togithub.com/actions/github-script) |
action | major | `v6` -> `v7` |

---

### Release Notes

<details>
<summary>actions/github-script (actions/github-script)</summary>

### [`v7`](https://togithub.com/actions/github-script/compare/v6...v7)

[Compare
Source](https://togithub.com/actions/github-script/compare/v6...v7)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44MS4zIiwidXBkYXRlZEluVmVyIjoiMzcuODEuMyIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-09 18:53:50 +01:00
Gastón Fournier
218d5625fb
chore: unify build and build PRs workflow (#5570)
## About the changes
Our build and build_prs workflows are almost the same with some minor
details:

1. **Build** also builds the frontend, but **PR Build** does not by
specifying `--ignore-scripts`
1. **Build PR** uploads test results: Upload test report to build. We'll
ignore this when building on main
1. **Build PR** just builds the backend (reason why the build is much
faster: 50s vs ~5m). We have a workflow for building frontend PRs, we'd
be removing the build frontend from the build on main, but we're already
exercising that to upload to dockerhub:

![image](https://github.com/Unleash/unleash/assets/455064/36f5a892-24dc-4de2-91bd-8e3419757b0d)
 
These are the main differences:

![image](https://github.com/Unleash/unleash/assets/455064/837b1ea4-305d-4472-b903-aeed7f3f3e7f)

This PR unifies the two workflows into one
2023-12-20 11:44:49 +01:00
Thomas Heartman
a9bf831759
Update publish-new-version.yaml (#5691)
Add more details about the how the version should be formatted. 

When trying to run this workflow, I'm always very unsure whether the
version should be prepended with a `v` or not. This should be clearly
stated in the description. If it doesn't matter, that should also be
stated explicitly.

Updated the texts after talking to @chriswk and making a release.
2023-12-20 08:15:22 +01:00
Gastón Fournier
2164ff6a87
chore: require both build and test before merge (#5545)
## About the changes
Some of our PRs such as #5538 merged without passing the tests. This is
because we were running tests in a different workflow that's not
mandatory to pass before we merge.

With this, we remove duplicated work (we were executing build:backend in
two different workflows) and we enforce our PRs to pass tests before
merging
2023-12-05 11:21:03 +01:00
Gastón Fournier
9f3648dc81
chore: test migration backward compatibility (#5492)
## About the changes
This PR will validate that our current migrations are backward
compatible with the latest stable release of Unleash.
It will do so by starting a database, applying the latest migrations,
and then starting a docker container with the last stable unleash
release and running UI tests against it.

There's a risk that the current version of UI tests will not work with
the previous version of our UI. Because of that we copied the previous
version of cypress tests
(https://github.com/Unleash/unleash/tree/5.6/frontend/cypress) into oss
folder and removed the ones that are enterprise only. We can discuss a
better way of doing this to avoid having to maintain this folder always
in sync with the previous version of Unleash

This action will only run when there are changes in migrations or to
cypress tests.
2023-11-30 18:20:13 +01:00
renovate[bot]
d6b56a24b9
chore(deps): update metcalfc/changelog-generator action to v4.2.0 (#5505)
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[metcalfc/changelog-generator](https://togithub.com/metcalfc/changelog-generator)
| action | minor | `v4.1.0` -> `v4.2.0` |

---

### Release Notes

<details>
<summary>metcalfc/changelog-generator
(metcalfc/changelog-generator)</summary>

###
[`v4.2.0`](https://togithub.com/metcalfc/changelog-generator/releases/tag/v4.2.0)

[Compare
Source](https://togithub.com/metcalfc/changelog-generator/compare/v4.1.0...v4.2.0)

-
[1de9b68](1de9b68cc5)
- Many small updates to dependencies.
-
[08047f0](08047f08c0)
- Migrating create release action.
-
[59d0205](59d0205b73)
- Merge pull request
[#&#8203;220](https://togithub.com/metcalfc/changelog-generator/issues/220)
from metcalfc/dependabot/npm_and_yarn/actions/github-6.0.0
-
[99034cd](99034cda79)
- Merge pull request
[#&#8203;223](https://togithub.com/metcalfc/changelog-generator/issues/223)
from metcalfc/dependabot/npm_and_yarn/eslint-8.53.0
-
[dc7612b](dc7612b8cf)
- Bump eslint from 8.50.0 to 8.53.0
-
[e79ecba](e79ecba5a6)
- Merge pull request
[#&#8203;224](https://togithub.com/metcalfc/changelog-generator/issues/224)
from metcalfc/dependabot/npm_and_yarn/prettier-3.1.0
-
[7c85144](7c85144db9)
- Bump prettier from 3.0.3 to 3.1.0
-
[d96af51](d96af51e25)
- Bump [@&#8203;actions/github](https://togithub.com/actions/github)
from 5.1.1 to 6.0.0
-
[2c24ec2](2c24ec281a)
- Merge pull request
[#&#8203;221](https://togithub.com/metcalfc/changelog-generator/issues/221)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.38.1
-
[315f67f](315f67f843)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.38.0
to 0.38.1
-
[f1400ae](f1400aefb4)
- Merge pull request
[#&#8203;217](https://togithub.com/metcalfc/changelog-generator/issues/217)
from metcalfc/dependabot/npm_and_yarn/actions/core-1.10.1
-
[965b057](965b057220)
- Merge pull request
[#&#8203;218](https://togithub.com/metcalfc/changelog-generator/issues/218)
from metcalfc/dependabot/npm_and_yarn/eslint-8.50.0
-
[51f72ca](51f72ca8b3)
- Bump eslint from 8.48.0 to 8.50.0
-
[cba9af5](cba9af52b4)
- Bump [@&#8203;actions/core](https://togithub.com/actions/core) from
1.10.0 to 1.10.1
-
[907c16b](907c16bb14)
- Merge pull request
[#&#8203;215](https://togithub.com/metcalfc/changelog-generator/issues/215)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.38.0
-
[2aa5a82](2aa5a82301)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.36.1
to 0.38.0
-
[367b65d](367b65d916)
- Merge pull request
[#&#8203;214](https://togithub.com/metcalfc/changelog-generator/issues/214)
from metcalfc/dependabot/github_actions/actions/checkout-4
-
[01a8fe5](01a8fe58c7)
- Bump actions/checkout from 3 to 4
-
[3dd9220](3dd9220597)
- Merge pull request
[#&#8203;212](https://togithub.com/metcalfc/changelog-generator/issues/212)
from metcalfc/dependabot/npm_and_yarn/eslint-8.48.0
-
[e63a7ac](e63a7ac740)
- Bump eslint from 8.42.0 to 8.48.0
-
[2a808b0](2a808b0ea9)
- Merge pull request
[#&#8203;213](https://togithub.com/metcalfc/changelog-generator/issues/213)
from metcalfc/dependabot/npm_and_yarn/prettier-3.0.3
-
[785ba19](785ba196e2)
- Bump prettier from 2.8.8 to 3.0.3
-
[476bf47](476bf471e2)
- Merge pull request
[#&#8203;208](https://togithub.com/metcalfc/changelog-generator/issues/208)
from metcalfc/dependabot/npm_and_yarn/isexe-3.1.1
-
[238e1fe](238e1fe243)
- Bump isexe from 2.0.0 to 3.1.1
-
[4ba8190](4ba8190927)
- Merge pull request
[#&#8203;205](https://togithub.com/metcalfc/changelog-generator/issues/205)
from metcalfc/dependabot/npm_and_yarn/word-wrap-1.2.4
-
[560623c](560623c867)
- Bump word-wrap from 1.2.3 to 1.2.4
-
[723453a](723453a1b9)
- Cleaning up.
-
[d3de36e](d3de36eca3)
- Merge pull request
[#&#8203;200](https://togithub.com/metcalfc/changelog-generator/issues/200)
from metcalfc/dependabot/npm_and_yarn/eslint-8.42.0
-
[afef6ae](afef6ae020)
- Bump eslint from 8.40.0 to 8.42.0
-
[aa6844c](aa6844cb20)
- Merge pull request
[#&#8203;198](https://togithub.com/metcalfc/changelog-generator/issues/198)
from metcalfc/dependabot/npm_and_yarn/eslint-8.40.0
-
[ef41d8f](ef41d8fe80)
- Merge pull request
[#&#8203;196](https://togithub.com/metcalfc/changelog-generator/issues/196)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.8
-
[aaeafc9](aaeafc9df5)
- Bump eslint from 8.38.0 to 8.40.0
-
[693e70b](693e70b27b)
- Bump prettier from 2.8.7 to 2.8.8
-
[1addadf](1addadf28f)
- Merge pull request
[#&#8203;195](https://togithub.com/metcalfc/changelog-generator/issues/195)
from metcalfc/dependabot/npm_and_yarn/eslint-8.38.0
-
[3bd86ca](3bd86ca10b)
- Bump eslint from 8.37.0 to 8.38.0
-
[201b155](201b155325)
- Update README.md
-
[e2d3b6f](e2d3b6f0f8)
- Merge pull request
[#&#8203;194](https://togithub.com/metcalfc/changelog-generator/issues/194)
from metcalfc/dependabot/npm_and_yarn/eslint-8.37.0
-
[89fa40d](89fa40de50)
- Bump eslint from 8.36.0 to 8.37.0
-
[b0109a8](b0109a8089)
- Merge pull request
[#&#8203;193](https://togithub.com/metcalfc/changelog-generator/issues/193)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.7
-
[c0c9e16](c0c9e16243)
- Bump prettier from 2.8.6 to 2.8.7
-
[3ca2591](3ca2591b55)
- Merge pull request
[#&#8203;192](https://togithub.com/metcalfc/changelog-generator/issues/192)
from metcalfc/dependabot/github_actions/actions/stale-8
-
[de98aa9](de98aa975a)
- Bump actions/stale from 7 to 8
-
[606f1c0](606f1c0cf4)
- Update issue templates
-
[edc622f](edc622f7e9)
- Create CONTRIBUTING.md
-
[38d635e](38d635ecb8)
- Merge pull request
[#&#8203;191](https://togithub.com/metcalfc/changelog-generator/issues/191)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.6
-
[89cd0f6](89cd0f696c)
- Bump prettier from 2.8.4 to 2.8.6
-
[6300779](6300779ee9)
- Merge pull request
[#&#8203;189](https://togithub.com/metcalfc/changelog-generator/issues/189)
from metcalfc/update_release
-
[9c0a661](9c0a661be8)
- Updating the create-release action.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-29 19:37:48 +00:00
Nuno Góis
a137275e16
chore: unpin node version in build (#5379)
https://linear.app/unleash/issue/2-1434/unpin-node-18-when-a-fix-is-out

Unpins the node version in our build step.
Continues the work of https://github.com/Unleash/unleash/pull/5146
2023-11-21 12:58:34 +00:00
Nicolae Socaciu
a68cae4b86
Updated banner and text (#5168)
We updated the banner to match the current number of official SDKs and
community SDKs
2023-10-27 08:37:40 +00:00
Christopher Kolstad
d013867f0f
Chore/bump dependencies (#5146)
We're getting security advisories against the node version we're using.
This PR bumps everything to 18.18.2/18.x again. And we'll trust our
excellent monitoring on detecting performance regressions again
2023-10-26 09:09:03 +02:00
Mateusz Kwasniewski
da2c46d8c3
chore: disable fsync in gh action postgres to speed up the tests (#5139) 2023-10-24 12:33:17 +02:00
Gastón Fournier
b802ced0f5
chore: avoid building frontend if not needed (#4982)
## About the changes
Looks like we're building twice:
https://github.com/Unleash/unleash/actions/runs/6468079228/job/17559391393#step:5:136
2023-10-10 15:35:11 +02:00
Gastón Fournier
7f61438095
chore: Rename validate step (#4969)
This is to bypass branch protection rules
2023-10-09 13:55:38 +02:00
Gastón Fournier
4fc7df84b9
fix: ignore errors on changelog generation and include token (#4926)
This backports changes made in 5.5
2023-10-06 16:39:34 +02:00
renovate[bot]
99e7aec18a
chore(deps): update actions/checkout action to v4 (#4741)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-05 10:19:57 +02:00
Gastón Fournier
8adc711949
chore: automate changelog generation on release branch (#4914)
## About the changes
This generates the changelog in the branch taking into account latest
release (it's conditional to wether the release ends with .0 or not)
2023-10-04 11:52:46 +02:00
Gastón Fournier
f9c3259083
fix: partial index on events announced (#4856)
## About the changes
Add partial index on events by announced. This should help avoid `Seq
Scan on events` when the majority of events are announced=true

---
Co-authored-by: Ivar Østhus <ivar@getunleash.io>
Co-authored-by: Gard Rimestad <gard@getunleash.io>
2023-09-28 10:21:16 +02:00
Christopher Kolstad
19053cd75c
fix: version checker update needs permissions to write id-token 2023-09-28 09:38:20 +02:00
Gard Rimestad
7cb471a0a4
chore: pin node version 18.17.1 (#4834)
We are pinning node to version 18.17.1 as we have seen some performance
degregation on node 18.18.0 on arm64. We will investigate this further
at a later point. This is to mitigate the issue.

Our next step in pinpointing the issue will be to compare between
running on musl vs libc on arm64.
2023-09-26 10:41:13 +02:00
Christopher Kolstad
fd9aeec0fb
task: Added workflow for calling update-version-action (#4805)
## What
This adds a workflow which automatically triggers on published releases
to update the version number for our version checker. In addition it
adds a workflow dispatch, in case the version number ended up wrong
after an automatic run (for instance when patching an earlier released
minor).

## Observations
Currently the version checker which receives the update only validates
that the new version is also valid semver, it does not however
check/verify that we're not suddenly telling it an older version is the
newest (improvement available in the version updater repo).
2023-09-25 14:36:19 +02:00
Gastón Fournier
eb259a3783
chore: Doc only should skip build (#4820)
## About the changes
This fakes the build on docs-only PRs to be able to have a green build.
Touching a doc to validate it works
2023-09-25 09:12:03 +02:00
Thomas Heartman
5799d0c90f
docs: add info on how to troubleshoot and better errors (#4803)
This PR adds some troubleshooting information to the website readme and
also makes it so that we get more readable errors in the build logs when
something goes wrong.
2023-09-21 11:46:39 +02:00
Gastón Fournier
043a3a10ec
chore: reduce build time (#4405)
## About the changes
~~Test if max-workers can speed up test runs~~ No, this didn't help.
Disabling the job that takes longer should help mitigate. We lose the
coverage report but we still test our code:
https://github.com/Unleash/unleash/actions/runs/5751945832/job/15591813034?pr=4405#step:7:2396

This cuts the build time by 50% and moving this to a daily schedule
2023-08-04 11:51:18 +02:00
renovate[bot]
240cc2b5fa
chore(deps): update docker/build-push-action action to v4 (#4365) 2023-08-03 13:13:14 +02:00
Gastón Fournier
05c6f42f7b
fix: avoid expression injection (#4157)
## About the changes
Using toJSON should escape any potentially harmful content from the
username and email input
2023-07-06 07:52:50 +00:00
Christopher Kolstad
9f5b7b610a
chore: add paths-ignore to more workflows (#4041)
### What
To reduce the work needed, this PR adds paths-ignore to avoid building
unnecessary workflows.

Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2023-07-05 14:29:37 +02:00
Gastón Fournier
1f7a948f6d
chore: avoids code injection through git commit (#4147)
## About the changes
Avoids code injection via the committer name or email

Also removes pushing to s3 on `main` folder as it's not used and we're
already pushing to `commits` folder
2023-07-05 13:35:12 +02:00
Gastón Fournier
661cbf2b91
fix: some security vulnerabilities (#4143)
## About the changes
This should address:
https://github.com/Unleash/unleash/security/code-scanning/1,
https://github.com/Unleash/unleash/security/code-scanning/49 and
https://github.com/Unleash/unleash/security/code-scanning/52

Refs:
-
https://securitylab.github.com/research/github-actions-untrusted-input/
-
https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS
- https://datatracker.ietf.org/doc/html/rfc5321#section-4.5.3.1.1

---------

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2023-07-05 11:51:27 +02:00
Gastón Fournier
28cafd6e06
fix: change to the proper author (#4141)
## About the changes
Based on the information displayed here
https://github.com/Unleash/unleash/actions/runs/5456442710/jobs/9929252672#step:3:11
this is how we should get the email and name of the committer
2023-07-04 19:44:10 +02:00
Gastón Fournier
148842e867
chore: Add debug information (#4140)
## About the changes
Debug information to get the best way of fetching the commit author and
use that to trigger a workflow
2023-07-04 17:34:35 +02:00
Gastón Fournier
bc68b5d265
chore: remove sync to enterprise from release branches (#4112)
## About the changes
When we do releases on the release branch we should not sync that back
to master on unleash-enterprise repo. At most we can trigger a different
process to automate the release of unleash-enterprise, but that'd be a
different story.
2023-06-28 14:13:18 +02:00
Gastón Fournier
4599e5cc06
chore: Optimize docker build oss (#3951)
## About the changes
Reduce the build time of OSS docker image from
[~30m](https://github.com/Unleash/unleash/actions/workflows/docker_publish.yaml)
to [under
15m](https://github.com/Unleash/unleash/actions/runs/5222180536/jobs/9427342758)

1. Build frontend outside docker multiplatform.
2. Allow `frontend/build` to be copied to the image by removing this
from `.dockerignore`
3. Run with `--ignore-scripts` to avoid building the frontend on the
`prepare` script, but this requires us to run all the prepare scripts
manually (except the frontend build).
 
**Note:** we need to build frontend in the `prepare` script to be able
to have source code dependencies

## Manual Testing
Manually downloaded from
https://hub.docker.com/r/unleashorg/unleash-server/tags?page=1 and
compared both `unleash` folders from main and the version built with the
new process
https://github.com/Unleash/unleash/actions/runs/5223078089/jobs/9429430190#step:5:48

![Screenshot from 2023-06-10
21-11-33](https://github.com/Unleash/unleash/assets/455064/60a41739-904d-480d-8d80-bf17b7a70432)

No major difference was spotted (only expected changes due to
development done in main)

**Command used to extract the contents:** 

```
cd /tmp
mkdir main && cd main
docker pull unleashorg/unleash-server:main-edge-18-alpine
docker export $(docker create unleashorg/unleash-server:main-edge-18-alpine) > container.tar && tar xvf container.tar
mkdir ../new-process && cd ../new-process
docker pull unleashorg/unleash-server:sha-ccac902-18-alpine
docker export $(docker create unleashorg/unleash-server:sha-ccac902-18-alpine) > container.tar && tar xvf container.tar
meld ./unleash ../main/unleash
```
2023-06-12 09:15:09 +02:00
Gastón Fournier
51fc8f0550
chore: avoid building frontend twice (#3918)
## About the changes
Running `yarn install` without the `dist` folder will trigger a `yarn
build` automatically as part of the `prepare script`

As we can see here:
https://github.com/Unleash/unleash/actions/runs/5200272004/jobs/9378770279
```
[build:frontend] ✓ built in 41.10s
// more output
[build:frontend] ✓ built in 39.81s
```
2023-06-08 10:48:28 +02:00
renovate[bot]
6ab62d5bfa
chore(deps): update aws-actions/configure-aws-credentials action to v2 (#3893)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials)
| action | major | `v1` -> `v2` |

---

### Release Notes

<details>
<summary>aws-actions/configure-aws-credentials</summary>

###
[`v2`](https://togithub.com/aws-actions/configure-aws-credentials/releases/tag/v2)

[Compare
Source](https://togithub.com/aws-actions/configure-aws-credentials/compare/v1...v2)

This tag tracks the latest v2.x.x release.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-06 15:03:11 +02:00
Gastón Fournier
6af72325c1
chore: simplify workflows (#3902)
## About the changes
This PR removes one workflow file and merges it into a similar workflow
file, these are the differences:

![image](https://github.com/Unleash/unleash/assets/455064/8afa791e-5f78-45cb-baca-1c28d4559d51)


This should help improving maintainability of the workflows
2023-06-05 14:34:22 +02:00
Gastón Fournier
a7bd91d621
fix: Remove repository which is no longer needed (#3900)
## About the changes
Sync fails
https://github.com/Unleash/unleash/actions/runs/5174602051/jobs/9321118800#step:3:23
due to https://github.com/ivarconr/unleash-enterprise/pull/562 because
we now assume the repository is Unleash/unleash

This removes the repository from the payload
2023-06-05 08:03:16 +00:00
Gastón Fournier
64f212fdda
fix: author and email should be for PRs (#3899)
## About the changes
Previous PR https://github.com/Unleash/unleash/pull/3871 we were
supposed to change this for PRs but the change was made on
`release.yaml` file. This fixes the issue
2023-06-05 09:47:20 +02:00
renovate[bot]
18edaf1d96
chore(deps): update actions/checkout action to v3 (#3891)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://togithub.com/actions/checkout) | action |
major | `v2` -> `v3` |

---

### Release Notes

<details>
<summary>actions/checkout</summary>

###
[`v3`](https://togithub.com/actions/checkout/blob/HEAD/CHANGELOG.md#v352)

[Compare Source](https://togithub.com/actions/checkout/compare/v2...v3)

- [Fix api endpoint for
GHES](https://togithub.com/actions/checkout/pull/1289)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-29 17:47:30 +02:00
Gastón Fournier
c7d8c9fd25
chore: name and email convention (#3871)
## About the changes
Minor improvement to communicate the author of a commit as `Name
<Email>`

Another option is to send email and name in different fields but we're
only using it here
https://github.com/ivarconr/unleash-enterprise/blob/master/.github/update_dependency_version.sh#L39
so this should be fine
2023-05-26 14:04:41 +00:00
Christopher Kolstad
3409b0c5a0
task: Add Unit test result check task (#3695)
After a Team Retro, one of our squads felt like we needed more data on
our test suites. This is the first effort to make our test results
easier to grab. It uses the test-reporter action to add a github check
to our main build and PR builds with our test results.

This at least should make it easier to parse which tests are failing.
However, it does not give us trends. So it does not yet make it easier
to decide which tests are flaky just from a quick view.

---------

Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2023-05-25 11:03:54 +00:00
Gastón Fournier
540c5f2cc5
fix: workflow was moved (#3852)
## About the changes
This script was moved, updating the ref
2023-05-24 10:20:31 +02:00
Gastón Fournier
08cf5e3041
chore: delay static asset generation (#3848)
## About the changes
Delay static asset generation to speed up the CI/CD pipeline.
Next, we should add a validation step before deployment to validate that
the static assets were properly published
2023-05-23 23:27:44 +02:00
Gastón Fournier
9f6e885830
fix: new workflow name (#3845)
Adopt the new workflow name:
https://github.com/ivarconr/unleash-enterprise/pull/529
2023-05-23 15:55:59 +02:00
renovate[bot]
8004d25631
chore(deps): update lycheeverse/lychee-action action to v1.8.0 (#3839) 2023-05-23 15:19:23 +02:00
Gastón Fournier
2152a04a85
fix: Use the correct actor (#3842)
Use the right author name as tested here
https://github.com/Unleash/unleash/actions/runs/5056589150/jobs/9074236865#step:6:833
2023-05-23 12:57:14 +01:00
Gastón Fournier
868df5d941
test: Add debug logs (#3841)
These logs will help us identify what should we use instead of
e55e7feed3/.github/workflows/notify_enterprise.yaml (L56)
which is being set to web-flow
https://github.com/Unleash/unleash/actions/runs/5055463116/jobs/9071696845#step:7:12
2023-05-23 13:15:11 +02:00
Gastón Fournier
574c5a92f4
chore: disable null checks until we have time to fix this (#3830)
## About the changes
This action started to fail and despite being safe to ignore it's still
annoying. I'm disabling it for now until I can look into what's going on
with it

Example:
https://github.com/Unleash/unleash/pull/3829#issuecomment-1557372501
2023-05-22 18:06:52 +02:00
renovate[bot]
e5df517ad9
chore(deps): update akhileshns/heroku-deploy action to v3.12.14 (#3804) 2023-05-18 16:17:44 +03:00
Jaanus Sellin
e075d46f79
fix: change commit hash step name (#3784) 2023-05-16 13:36:17 +03:00
Jaanus Sellin
a7751dfbdd
feat: set commit hash as static asset version (#3783) 2023-05-16 11:44:50 +03:00
Jaanus Sellin
0a3cf646be
feat: new notify enterprise workflow (#3781) 2023-05-16 11:06:07 +03:00
Jaanus Sellin
da35454bd8
feat: release inputs added to dispatcher (#3756) 2023-05-16 10:38:12 +03:00
Gastón Fournier
00549ceaa4
fix: build is not present in npm package (#3759)
## About the changes
Before publishing we should build. This is because previously we were building on prepare https://github.com/Unleash/unleash/pull/3736/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L45
2023-05-12 13:24:27 +00:00
Gastón Fournier
18d585cd5f
fix: update GH action (#3758)
## About the changes
Another piece requiring changes, which adapts to:
https://github.com/Unleash/unleash/pull/3736
2023-05-12 12:14:39 +00:00
Nuno Góis
a9c24e4262
chore: simplify package scripts (#3736)
# Simplify package scripts

This PR's purpose is to raise a discussion surrounding our current
package scripts.

It includes some suggestions that aim to simplify the scripts and
hopefully bring a much more straightforward approach to developing and
contributing to Unleash.

Building (prod) should only happen **explicitly** and when needed.

## Before PR (current behavior)

- Clone the project;
- Open 2 terminals: One for `unleash` and another for
`unleash/frontend`;
- On `unleash`: 
  - Run `yarn` (which will also build, for some reason?);
  - Run `yarn start:dev` to start backend in dev mode (`tsc-watch`);
- On `unleash/frontend`:
  - Run `yarn` (which will also build, for some reason?);
  - Run `yarn start` to start frontend in dev mode (`vite`);

So it seems to me like we build unnecessarily every time we install
dependencies. Neither dev scripts need to build the project, as backend
uses `tsc-watch` and frontend uses `vite`. I'm unsure why this is the
case, as building can take a very long time.


![image](https://github.com/Unleash/unleash/assets/14320932/5ecb7df1-e5b4-4d70-ba7e-97119f5d1116)

There's also some complexity in the way we need to split the terminal to
`cd` into `frontend` and treat it as a different project. The fact that
we have different script names is also confusing (`yarn start`, `yarn
start:dev`, etc).

## After PR

- Clone the project;
- Run `yarn` to install all dependencies;
- Run `yarn dev` to get started developing Unleash;

Running `yarn` should take care of everything needed to start
developing. This includes installing dependencies for frontend as well.
It should not build projects if we are not being explicit about it,
especially since we don't need to build them at this stage.


![image](https://github.com/Unleash/unleash/assets/14320932/614e42fc-3467-432f-91fc-624b1b35c7c1)

Running `yarn dev` should start the project in dev mode. This means
running both projects in `dev` mode, which for `backend` means running
`tsc-watch` and for `frontend` means running `vite`.

Here this PR attempts to provide a better DX by using
[concurrently](https://www.npmjs.com/package/concurrently) and
[wait-on](https://www.npmjs.com/package/wait-on) - This means both tasks
are ran simultaneously, stdout is labeled accordingly, and are stopped
together. It also means that `frontend` waits for `backend` to be
serving at `4242` before starting, since `frontend` starts pretty much
immediately with `vite` and `backend` takes a bit longer. Of course,
when the `backend` is hot-reloading you may still find some
`ECONNREFUSED`s on `frontend` stdout while it recompiles.


![image](https://github.com/Unleash/unleash/assets/14320932/8bde8ee2-3cad-4e3f-a0db-9eed60cfb04d)

No more splitting your terminal and treating `frontend` as a separate
project.

## Discussion points

Maybe there's a better alternative to `tsc-watch`? I briefly explored
some alternatives and while they had a much faster starting speed,
hot-reload was sometimes slower. IMO we should aspire to run
`src/server-dev.ts` directly and only compile when needed.

Running `dev:backend` still serves a version of the frontend (at 4242).
**Why? Can we remove that behavior?**
I can't imagine a scenario in dev where we wouldn't want to run the
latest version of the frontend with `vite`.

~~**Note:** This PR removes all other out-of-scope scripts to focus on
this revamp. If we decide to merge it, we should evaluate what other
existing scripts we still want to include. May be a good opportunity to
clean up unused ones and only include the ones we really use. This
includes scripts that our GH actions rely on.~~

**Update:** In an effort to minimize impact surface of this PR and make
it a bit more ready for merging:
- It updates some docs in
2a4ff805e8
and
1bbc488251
to reflect our new simplified flow;
- It includes the old package scripts for now in
039bc04699;
- It updates some of our GH actions to reflect the new scripts in
7782cb9b12;

Given its current status I'll promote the PR to "ready for review". 

I still think we should have a second look at our existing scripts and
GH actions to see what we really need and/or should adapt, but it should
be a team effort so we have a broader context. Maybe on a follow-up PR.

Does this require any changes to related projects (e.g. Enterprise)?

---------

Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2023-05-12 11:23:22 +01:00
Nuno Góis
edefa6fc7e
test: add interactive demo guide e2e test (#3656)
This PR revamps e2e tests, while adding a new one for the interactive
demo guide:
 - Bumps Cypress from `9.7.0` to `12.11.0`;
 - Bumps Cypress GH action from `v2` to `v5`;
 - Makes any adjustments needed;
 - Fixes a lot of issues identified with existing tests;
- Adds new `demo.spec.ts` e2e test that covers the entire demo guide
flow;

**Note:** Currently does not include `demo.spec.ts` in the GH action, as
it
[fails](https://github.com/Unleash/unleash/actions/runs/4896839575/jobs/8744137231?pr=3656)
on step 2.13 (last step of "user-specific" topic). It runs perfectly
fine locally, though.

Might be placebo, but in general tests seem less flaky now and they may
even be faster (especially when not adding the `demo` one, which would
always take a long time).
2023-05-08 09:16:18 +01:00
renovate[bot]
a39f54b4ed
chore(deps): update metcalfc/changelog-generator action to v4.1.0 (#3702)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[metcalfc/changelog-generator](https://togithub.com/metcalfc/changelog-generator)
| action | minor | `v4.0.1` -> `v4.1.0` |

---

### Release Notes

<details>
<summary>metcalfc/changelog-generator</summary>

###
[`v4.1.0`](https://togithub.com/metcalfc/changelog-generator/releases/tag/v4.1.0)

[Compare
Source](https://togithub.com/metcalfc/changelog-generator/compare/v4.0.1...v4.1.0)

-
[afdcb94](afdcb9470a)
- Releasing support for branches with slashes in 4.1.0.
-
[6745040](67450402da)
- Merge pull request
[#&#8203;188](https://togithub.com/metcalfc/changelog-generator/issues/188)
from metcalfc/pr\_183
-
[afbb436](afbb436356)
- Adding tests for branches with slash in names.
-
[f624ce0](f624ce0f5a)
- Add support for / in branch names
-
[1999345](19993455b6)
- Bump eslint from 8.34.0 to 8.36.0
-
[ead7f3a](ead7f3ad70)
- Merge pull request
[#&#8203;187](https://togithub.com/metcalfc/changelog-generator/issues/187)
from metcalfc/dependabot/npm_and_yarn/eslint-8.36.0
-
[e4611ec](e4611eca19)
- Bump eslint from 8.34.0 to 8.36.0
-
[007a68c](007a68c897)
- Merge pull request
[#&#8203;184](https://togithub.com/metcalfc/changelog-generator/issues/184)
from metcalfc/dependabot/npm_and_yarn/eslint-8.34.0
-
[9ffb3f5](9ffb3f53a9)
- Bump eslint from 8.33.0 to 8.34.0
-
[a6c4304](a6c430458e)
- Merge pull request
[#&#8203;182](https://togithub.com/metcalfc/changelog-generator/issues/182)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.4
-
[99d2f13](99d2f13d54)
- Bump prettier from 2.8.3 to 2.8.4
-
[1c1842e](1c1842e90c)
- Merge pull request
[#&#8203;181](https://togithub.com/metcalfc/changelog-generator/issues/181)
from metcalfc/dependabot/npm_and_yarn/eslint-8.33.0
-
[9f82ca5](9f82ca5bea)
- Bump eslint from 8.32.0 to 8.33.0
-
[baff252](baff252eae)
- Merge pull request
[#&#8203;180](https://togithub.com/metcalfc/changelog-generator/issues/180)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.36.1
-
[07a2b81](07a2b81172)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.36.0
to 0.36.1
-
[8434262](8434262796)
- Merge pull request
[#&#8203;177](https://togithub.com/metcalfc/changelog-generator/issues/177)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.3
-
[2a6983c](2a6983c960)
- Merge pull request
[#&#8203;178](https://togithub.com/metcalfc/changelog-generator/issues/178)
from metcalfc/dependabot/npm_and_yarn/eslint-8.32.0
-
[8ad4443](8ad44437b3)
- Bump eslint from 8.31.0 to 8.32.0
-
[1526b06](1526b0627d)
- Bump prettier from 2.8.2 to 2.8.3
-
[3177d3f](3177d3f626)
- Merge pull request
[#&#8203;176](https://togithub.com/metcalfc/changelog-generator/issues/176)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.2
-
[9631f7a](9631f7af35)
- Bump prettier from 2.8.1 to 2.8.2
-
[682bb79](682bb796f8)
- Merge pull request
[#&#8203;175](https://togithub.com/metcalfc/changelog-generator/issues/175)
from metcalfc/dependabot/npm_and_yarn/eslint-8.31.0
-
[a0a7da8](a0a7da8672)
- Bump eslint from 8.30.0 to 8.31.0
-
[c2958f1](c2958f1f63)
- Merge pull request
[#&#8203;173](https://togithub.com/metcalfc/changelog-generator/issues/173)
from metcalfc/dependabot/npm_and_yarn/eslint-8.30.0
-
[10a5fd0](10a5fd04e6)
- Bump actions/stale from 6 to 7
([#&#8203;174](https://togithub.com/metcalfc/changelog-generator/issues/174))
-
[3083199](3083199359)
- Bump eslint from 8.29.0 to 8.30.0
-
[3a5b89e](3a5b89e488)
- Remove set-output in favor of GITHUB_OUTPUT
([#&#8203;172](https://togithub.com/metcalfc/changelog-generator/issues/172))
-
[1776f11](1776f11a43)
- Merge pull request
[#&#8203;171](https://togithub.com/metcalfc/changelog-generator/issues/171)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.1
-
[0877839](0877839bb8)
- Merge pull request
[#&#8203;169](https://togithub.com/metcalfc/changelog-generator/issues/169)
from metcalfc/dependabot/npm_and_yarn/eslint-8.29.0
-
[ac3ac34](ac3ac348dd)
- Bump prettier from 2.8.0 to 2.8.1
-
[f6eef02](f6eef02196)
- Bump eslint from 8.28.0 to 8.29.0
-
[db4799e](db4799e0d1)
- Merge pull request
[#&#8203;170](https://togithub.com/metcalfc/changelog-generator/issues/170)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.36.0
-
[5d4ff88](5d4ff88fc2)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.34.0
to 0.36.0
-
[03ce106](03ce106ed0)
- Merge pull request
[#&#8203;167](https://togithub.com/metcalfc/changelog-generator/issues/167)
from metcalfc/dependabot/npm_and_yarn/eslint-8.28.0
-
[43ceb1d](43ceb1d18f)
- Merge pull request
[#&#8203;168](https://togithub.com/metcalfc/changelog-generator/issues/168)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.0
-
[f2773af](f2773af55c)
- Bump prettier from 2.7.1 to 2.8.0
-
[1c00ff3](1c00ff33ba)
- Bump eslint from 8.26.0 to 8.28.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS43MS40IiwidXBkYXRlZEluVmVyIjoiMzUuNzEuNCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-06 12:03:26 +00:00
renovate[bot]
115a689c07
chore(deps): update lycheeverse/lychee-action action to v1.7.0 (#3701)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action)
| action | minor | `v1.6.1` -> `v1.7.0` |

---

### Release Notes

<details>
<summary>lycheeverse/lychee-action</summary>

###
[`v1.7.0`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.7.0):
Version 1.7.0

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.6.1...v1.7.0)

##### What's Changed

- Fix three typos in README by
[@&#8203;phieri](https://togithub.com/phieri) in
[https://github.com/lycheeverse/lychee-action/pull/184](https://togithub.com/lycheeverse/lychee-action/pull/184)
- CI: Automatic vX tag update workflow by
[@&#8203;tooomm](https://togithub.com/tooomm) in
[https://github.com/lycheeverse/lychee-action/pull/185](https://togithub.com/lycheeverse/lychee-action/pull/185)
- Format arguments in CI pipeline by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/186](https://togithub.com/lycheeverse/lychee-action/pull/186)
- Test lychee cache by [@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/187](https://togithub.com/lycheeverse/lychee-action/pull/187)
- Cleanup tar archive; make installation more robst by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/189](https://togithub.com/lycheeverse/lychee-action/pull/189)
- Readme: Add info about split up cache steps by
[@&#8203;tooomm](https://togithub.com/tooomm) in
[https://github.com/lycheeverse/lychee-action/pull/190](https://togithub.com/lycheeverse/lychee-action/pull/190)
- bump lychee version by [@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/192](https://togithub.com/lycheeverse/lychee-action/pull/192)

##### New Contributors

- [@&#8203;phieri](https://togithub.com/phieri) made their first
contribution in
[https://github.com/lycheeverse/lychee-action/pull/184](https://togithub.com/lycheeverse/lychee-action/pull/184)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1.6.1...v1.7.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS43MS40IiwidXBkYXRlZEluVmVyIjoiMzUuNzEuNCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-06 05:45:31 +00:00
Christopher Kolstad
1b248a03e9
docs: Metrics tag openapi docs (#3572)
I've copied most of the descriptions from what we did for batch metrics
under the Edge tag, however there are a couple of top level descriptions
that are "fine" but I'm definitely open to suggestions.

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-04-26 12:10:57 +02:00
Gastón Fournier
201c86838f
Test npm publish (#3554)
## About the changes

https://github.blog/changelog/2022-10-24-npm-v9-0-0-released/ introduced
a breaking change in the way they handle files inside package.json which
caused some issues with the way we pack and distribute Unleash:

> npm pack now follows a strict order of operations when applying ignore
rules. If a files array is present in the package.json, then rules in
.gitignore and .npmignore files from the root will be ignored.

What we discovered is that when having a nested .gitignore (the one we
have inside frontend), `npm publish` was taking that nested .gitignore
into account (despite the fact that we also have a package.json with
files inside the same folder). We tricked this by removing the `build`
folder from `frontend/.gitignore` and instead adding it into the root
`.gitignore` which is being ignored by `npm publish` following what's
stated in the release note above.

-----------------

Co-authored-by: Gard Rimestad <gard@getunleash.io>
2023-04-18 15:44:19 +02:00
Gastón Fournier
e6f3b3009a
fix: missing node engine upgrade to 18 (#3552)
## About the changes
Updates frontend engine minimum version to node 18 and also improves
some messages in the release GHA task
2023-04-18 12:42:49 +00:00
Gastón Fournier
e7d3182af5
fix: gh actions that run on main (#3550)
## About the changes
These also need to be migrated to node 18
2023-04-18 08:55:55 +00:00
Gastón Fournier
0426dd505d
chore: update to node 18 (#3527)
## About the changes
This upgrades our main branch to use node 18 which is the active LTS
version and stops using node 14 which reaches the end of life in a few
weeks: https://nodejs.dev/en/about/releases/

This PR also adds `--no-experimental-fetch` for frontend tests and other
frontend commands. Related to:
https://github.com/node-fetch/node-fetch/issues/1566

More about the experimental fetch release:
https://nodejs.org/en/blog/announcements/v18-release-announce#fetch-experimental
2023-04-18 10:35:32 +02:00
Gastón Fournier
0b612c835a
chore: Auto assign PR (#3531)
## About the changes
This will auto-assign any PR to the opener of the PR. This should help
identify internal PRs from external ones, mainly helping our GitHub
Watcher role

PoC done in unleash-edge:
https://github.com/Unleash/unleash-edge/actions/workflows/auto-assign-pr-author.yaml
2023-04-17 10:34:23 +01:00
andreas-unleash
7e5838a681
fix: remove e2e tests (#3515)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
After discussions around e2e tests:
- Became clear that the intention is to test core functionality only

Removing 2 test files:
- notifications.spec.ts : because all PRs are run against the same
heroku backend - no guarantee that more notifications will not happen as
other tests run - so the test is flaky
- settings.spec.ts: depends on instance being enterprise and a flag on  
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-04-13 16:04:06 +03:00
andreas-unleash
99c555bf59
chore: refactor Cypress tests (#3445)
Adds proper typescript support.
Created reusable commands
Added README for cypress test
Refactored tests
Fixed bugs as I found them.
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->

## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-04-04 11:46:28 +03:00
renovate[bot]
e828f18e65
chore(deps): update akhileshns/heroku-deploy action to v3.12.13 (#3424)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[akhileshns/heroku-deploy](https://togithub.com/akhileshns/heroku-deploy)
| action | patch | `v3.12.12` -> `v3.12.13` |

---

### Release Notes

<details>
<summary>akhileshns/heroku-deploy</summary>

###
[`v3.12.13`](https://togithub.com/AkhileshNS/heroku-deploy/releases/tag/v3.12.13)

[Compare
Source](https://togithub.com/akhileshns/heroku-deploy/compare/v3.12.12...v3.12.13)

Switched to node 16 due to deprecation of node 12 (Thank you to
[@&#8203;brtrick](https://togithub.com/brtrick) for PR)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4yMi4xIiwidXBkYXRlZEluVmVyIjoiMzUuMjIuMSJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-30 01:13:21 +00:00
Mateusz Kwasniewski
a6bc33c04a
Update reset_heroku.yml 2023-03-29 15:11:53 +02:00
Mateusz Kwasniewski
c5d57a51ad
Update reset_heroku.yml 2023-03-29 14:55:40 +02:00
Mateusz Kwasniewski
e62a529331
reset heroku GH action (#3420) 2023-03-29 14:51:45 +02:00
Tymoteusz Czech
f124997485
E2E test - batch updates (#3392) 2023-03-29 14:47:12 +03:00
Gastón Fournier
dfd7830881
fix: add build frontend (#3324)
## About the changes
Building main when building the main branch. I thought it was not needed
but apparently it is
2023-03-15 14:21:45 +00:00
Gastón Fournier
8cdd68914e
chore: avoid building frontend when possible (#3278)
## About the changes
This is based on @nunogois suggestion to split the build in two, so we
don't build the frontend every time we run `yarn`

e2e frontend tests were forced to run by modifying frontend/README.md

### Important files
Some github actions had to be updated to also build the frontend. The
Dockerfile building our docker image was also looked into but it should
work as is


## Discussion points
This is a potentially risky operation as we might overlook something
that requires building the frontend which might lead to invalid builds.
We need to make sure when we do this we don't have any release planned.
2023-03-15 13:17:32 +01:00
Gastón Fournier
8109c13e66
chore: enable strictNullCheck but ignore problems at compile time (#3273)
## About the changes
This enables strictNullChecks which will give us nice hints in our IDEs
to avoid introducing more and hopefully will encourage us to fix some of
the existing problems.

Also:
1. The compiler explicitly ignores these errors
2. The "null checks action" still verifies we're not introducing new
ones.

The combination of these two things should help us to reduce the number
of nulls

For testing that the action still works (cause it was modified), [a
commit](5c4b818d1a)
was added introducing a bunch of null check errors:
https://github.com/Unleash/unleash/actions/runs/4364648191/jobs/7632224720
2023-03-10 10:27:56 +01:00
renovate[bot]
763cd56af3
chore(deps): update lycheeverse/lychee-action action to v1.6.1 (#3283)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action)
| action | patch | `v1.6.0` -> `v1.6.1` |

---

### Release Notes

<details>
<summary>lycheeverse/lychee-action</summary>

###
[`v1.6.1`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.6.1):
Version 1.6.1

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.6.0...v1.6.1)

#### Summary

Hotfix release, which restores old behavior for cached links with status
code 2xx.
This temporarily broke some downstream pipelines.

#### What's Changed

- Bump lychee to 0.11.1 by [@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/181](https://togithub.com/lycheeverse/lychee-action/pull/181)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1.6.0...v1.6.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTkuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE1OS4wIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-09 17:49:57 +00:00
renovate[bot]
adc6863ad9
chore(deps): update lycheeverse/lychee-action action to v1.6.0 (#3237)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
|
[lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action)
| action | minor | `v1.5.4` -> `v1.6.0` | `v1.6.1` |

---

### Release Notes

<details>
<summary>lycheeverse/lychee-action</summary>

###
[`v1.6.0`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.6.0):
Version 1.6.0

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.5.4...v1.6.0)

#### What's Changed

- Use random tempfile for `LYCHEE_TMP` by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/173](https://togithub.com/lycheeverse/lychee-action/pull/173)
- Bump actions/checkout from 3.1.0 to 3.2.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/lycheeverse/lychee-action/pull/175](https://togithub.com/lycheeverse/lychee-action/pull/175)
- Bump actions/checkout from 2 to 3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/lycheeverse/lychee-action/pull/177](https://togithub.com/lycheeverse/lychee-action/pull/177)
- Bump to lychee version 0.11.0 by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/180](https://togithub.com/lycheeverse/lychee-action/pull/180)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1.5.4...v1.6.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM0LjE1My4yIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-02 05:53:54 +00:00
renovate[bot]
a596301a3f
chore: update actions/checkout action to v3 (#2915)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://togithub.com/actions/checkout) | action |
major | `v2` -> `v3` |

---

### Release Notes

<details>
<summary>actions/checkout</summary>

###
[`v3`](https://togithub.com/actions/checkout/blob/HEAD/CHANGELOG.md#v310)

[Compare Source](https://togithub.com/actions/checkout/compare/v2...v3)

- [Use @&#8203;actions/core `saveState` and
`getState`](https://togithub.com/actions/checkout/pull/939)
- [Add `github-server-url`
input](https://togithub.com/actions/checkout/pull/922)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMDUuMSIsInVwZGF0ZWRJblZlciI6IjM0LjEwOC40In0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-28 15:16:45 +01:00
Gastón Fournier
2e749a2b3e
docs: better comment in strictNullCheck action (#3198)
## About the changes
This is a small improvement adding more context to the comment message
when this action fails. 

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-02-27 12:06:09 +00:00
Mateusz Kwasniewski
6ff7851474
refactor: remove explicit shell 2023-02-27 11:32:25 +01:00
Mateusz Kwasniewski
e36de99160
fix: version for older npm 2023-02-27 11:30:42 +01:00
Mateusz Kwasniewski
8886cd6ee6
fix: gh action shell (#3200) 2023-02-27 11:19:31 +01:00
Mateusz Kwasniewski
ac9f054461
fix: limited script for now 2023-02-27 11:14:21 +01:00
Mateusz Kwasniewski
a659ce8ab4
fix: gh action script error code 2023-02-27 11:11:30 +01:00
Mateusz Kwasniewski
10b41fc8b2
fix: Own version update fix (#3196) 2023-02-27 11:00:04 +01:00
Gastón Fournier
4d26088603
chore: comment outcome of null check action (#3133)
## About the change
Post a comment in the Pull Request rather than echo in the console in
case of an error. Also, [reduced the null check errors by
26](https://github.com/Unleash/unleash/actions/runs/4196924954/jobs/7278564622#step:5:40)
2023-02-17 11:12:46 +01:00
Gastón Fournier
95d300379a
chore: moved GH action script to the yaml file (#3119)
## About the changes
- Actions are not counting successfully:
https://github.com/Unleash/unleash/actions/runs/4181713524/jobs/7243938807#step:5:17
- This should fix an issue with running yarn concurrently (which might
be leading to the zero counts)
- Move the code to a GH action so it's easier to debug 
- Added a diff of the reported errors to help the PR author identify the
potential cause
2023-02-16 13:35:54 +01:00
Gastón Fournier
7aed1e0d13
chore: gradually reduce null-check errors (#3094)
## About the changes

In order to move us towards enabling `strictNullChecks` we'd want to
have a way of gradually enabling this without having to fix all errors
at once, this will force us to start reducing the number of null check
issues.

This new workflow:
1. [Checks out the current branch and main into 2 different
folders](https://github.com/Unleash/unleash/pull/3094/files#diff-068f2ace1d1d2e773fb5e4240c83ccab251556fd5524fe13847122878e40da3bR15-R23)
2. Uses the **same** script `gradual-strict-null-checks.sh` (from the
current branch) [against each folder in
parallel](https://github.com/Unleash/unleash/pull/3094/files#diff-068f2ace1d1d2e773fb5e4240c83ccab251556fd5524fe13847122878e40da3bR34-R38)
to count the number of errors if `strictNullChecks` was enabled
3. If the number of potential errors in the current branch is higher
than the number of potential errors in main [it
fails](https://github.com/Unleash/unleash/pull/3094/files#diff-068f2ace1d1d2e773fb5e4240c83ccab251556fd5524fe13847122878e40da3bR41-R46)

As an example, a [new issue was introduced in this
PR](753f57223c)
(and then
[reverted](e4deb62965)),
so we can test the build failure:

https://github.com/Unleash/unleash/actions/runs/4163632636/jobs/7204268519#step:5:10


## Discussion points
This could be a non-mandatory check, just advising, or even adding a
comment in the PR. It might be good to start with a non-strict check,
but at the same time we can decide to make it non-strict if a problem
appears

In some situations, an additional null check error might require us to
fix a bunch of them, increasing the time to deliver. In these cases we
can suppress an individual line with `// @ts-ignore: Object is possibly
'null'.` although might defeat the purpose of this workflow
2023-02-14 15:52:21 +01:00
renovate[bot]
cc30b3b3fd
chore(deps): update docker/login-action action to v2 (#2962)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [docker/login-action](https://togithub.com/docker/login-action) |
action | major | `v1` -> `v2` |

---

### Release Notes

<details>
<summary>docker/login-action</summary>

### [`v2`](https://togithub.com/docker/login-action/compare/v1...v2)

[Compare
Source](https://togithub.com/docker/login-action/compare/v1...v2)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMDUuNCIsInVwZGF0ZWRJblZlciI6IjM0LjEwOC40In0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-13 09:50:49 +01:00
Mateusz Kwasniewski
719217e190
refactor: move repo sync signal after npm publish (#3071) 2023-02-09 10:05:57 +01:00
Mateusz Kwasniewski
ff3bdf4995
feat: "GH action" trigger another repo 2023-02-09 09:47:42 +01:00
Gard Rimestad
9ef4900baf
feat: remove CI build trigger (#3070)
We do not need this trigger anymore as we auto-release beta versions
from this repository and auto bump the dependency in unleash-enterprise.
2023-02-09 09:13:43 +01:00
Mateusz Kwasniewski
5e98b8cb96
fix: "GH action" push tags for publish 2023-02-08 17:03:12 +01:00
Mateusz Kwasniewski
072154a06f
fix: "Github actions" ignore npm publish scripts 2023-02-08 16:29:49 +01:00