Commit Graph
11 Commits
Author SHA1 Message Date
Grzegorz Zdunek 620c0a0f9b Switch JS package manager to pnpm (#44167)
* Adjust `package.json`s to pnpm

* Convert resolutions (pnpm doesn't support `**/` syntax)

It also removes resolutions that are no longer relevant.

* Convert `yarn.lock` to `pnpm-lock.yaml` with `pnpm import`

* Always add `e/web/teleport` workspace to the lockfile

* Adjust `jest` to new node_modules structure

* Adjust `storybook` to new node_modules structure

* Replace `toHaveStyleRule` with `toHaveStyle`

`jest-styled-components` package is no longer global, so `toHaveStyleRule` matchers is not recognized by TS.
We use them only in three places, so it's simpler to convert them to `toHaveStyle`.

* Adjust README files

* Adjust GHA workflows

* Adjust build assets

* Remove remaining `yarn` mentions

I don't think anyone uses the debug configuration for electron (and we don't have `start-electron` script for a long time).

* `corepack enable` -> `corepack enable pnpm`

* Automatically enable pnpm when running `make build/teleport`

* Run `pnpm import` again

* Run `pnpm dedupe`

* Add `yarn.lock` to .gitignore

* Link to pnpm installation docs

* Add a better comment for `transformIgnorePatterns`

* Make pattern for `shared` stories more specific

* Change `corepack enable pnpm` in readmes

* Run `pnpm import && pnpm dedupe` again
2024-07-19 09:53:32 +00:00
Mike Jensen 2250138850 Add Dependency Review Action (#1437)
This action is documented on shared-workflows here: https://github.com/gravitational/shared-workflows/blob/de06c07914b7b42452bd99ef6691325abd2d1c45/.github/workflows/dependency-review.yaml#L1-L9
2022-12-15 17:24:07 +00:00
Mike Jensen acb0542687 CodeQL Config fixes (#1376)
Fixes to address suggestions from this PR: https://github.com/gravitational/webapps/pull/1373
2022-11-21 23:33:27 +00:00
Mike Jensen 304806ec54 Create initial codeql.yml configuration (#1373) 2022-11-21 09:53:46 -08:00
Zac Bergquist bcacb9a128 Switch webapps automation to main repo (#1082) 2022-08-03 14:44:25 -06:00
Zac Bergquist 1965d16680 Remove the stash (#1055)
This didn't work. I don't think it should be necessary anyway.
2022-07-28 23:22:29 +00:00
Zac Bergquist 3df34eed41 webassets: stash and pull to stay up to date (#1054) 2022-07-28 23:03:09 +00:00
Zac Bergquist 77a11a8a15 Further improvements to the webassets automation (#1053)
- Allow empty commits (in the event nothing changed)
- Include git status to help with troubleshooting
- Attempt to fix the webassets push with a fresh checkout
2022-07-28 16:07:50 -06:00
Zac Bergquist 056dd7cd8f Fix git push (#1052)
The checkout action leaves the branch in a detached head state.
2022-07-28 14:01:41 -06:00
Zac Bergquist 55b8eaf67d Checkout webassets at the right branch (#1051)
Rather than checking out master and then switching to the appropriate
branch, we just check out the right branch from the beginning.

This works because the branches in gravitational/webassets match up
with the branches in this repository.
2022-07-28 10:01:54 -06:00
Zac Bergquist 4edc72120d Add automation to update webassets on push (#868)
This will run using a service account which is the only account
permitted to push to webassets and webassets.e.

The action will run when any commits are pushed to the protected
branches in webapps. This means that commits to webapps.e do not
directly trigger updates - this automation will run when the
enterprise submodule ref is updated in webapps.

The "nop" yarn script allows us to separate the building of the docker
image from the build of Teleport, so that GitHub actions can run the
yarn build after buildling an image from our dockerfile. This is
necessary because container steps do not support build args.
2022-07-27 22:31:19 +00:00