Commit graph

1014 commits

Author SHA1 Message Date
Martin Pitt
28466f7217 webpack: Move from sassc to Dart sass
Fixes #475
2021-07-27 09:42:10 +02:00
Martin Pitt
4d9dd8c11e workflows: Run release workflow in release environment
This partitions secrets and limits their potential exposure/leakage.

This environment can be created with github-upload-action-secrets in [1].

[1] https://github.com/cockpit-project/bots/pull/2164
2021-07-06 09:38:18 +02:00
Martin Pitt
cfaa74f761
test: Fix host name lookup (#473)
Our code reads /etc/hostname. Do the same in the test, as the runtime
sethostname(2) (set by hostnamed) and static host name may be different.
2021-07-06 09:02:39 +02:00
Allison Karlitskaya
37b2ee5056 various: master → main updates
cockpit/ bots/ and cockpituous/ all use the 'main' branch now.
2021-07-05 10:47:18 +02:00
Cockpit Project
37a64010bf package.json: Update core-js
Closes #471
2021-06-30 05:47:55 +02:00
Cockpit Project
50ae23e5ad package.json: Update core-js
Closes #470
2021-06-25 06:44:30 +02:00
Cockpit Project
835395fc18 package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #468
2021-06-24 07:41:51 +02:00
Cockpit Project
7ddabca32a package.json: Update core-js
Closes #467
2021-06-24 07:21:59 +02:00
Cockpit Project
caf8e908eb package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #465
2021-06-09 14:24:51 +02:00
Cockpit Project
efce4f7f95 package.json: Update core-js
Closes #464
2021-06-06 19:47:37 +02:00
Martin Pitt
0edc3e6c53 packit: Build in development mode
With recent NPM/sandcastle versions, production mode and its additional
optimizations don't fit any more into the 768 MB RAM of sandcastle
containers. Build in development mode, which skips the optimization
steps.

Taken from 7000b4460e
2021-05-31 08:50:49 +02:00
Cockpit Project
261922a9c1 package.json: Update core-js
Closes #462
2021-05-30 10:34:12 +02:00
Cockpit Project
09bc3dca4c package.json: Update core-js
Closes #460
2021-05-26 06:17:35 +02:00
Cockpit Project
22edb6591b package.json: Update @patternfly/react-core, @patternfly/patternfly
Closes #459
2021-05-19 06:27:19 +02:00
Cockpit Project
a10984bcf0 package.json: Update core-js
Closes #458
2021-05-10 05:49:14 +02:00
Cockpit Project
53455d58b3 package.json: Update core-js
Closes #457
2021-05-07 05:49:34 +02:00
Cockpit Project
f4d2ee2ecc package.json: Update core-js
Closes #456
2021-05-06 06:02:45 +02:00
Cockpit Project
a29384eebd package.json: Update core-js
Closes #455
2021-05-04 06:10:51 +02:00
Cockpit Project
1b5f96e9dc package.json: Update core-js
Closes #454
2021-04-29 05:57:56 +02:00
Cockpit Project
702712355c package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #453
2021-04-24 07:40:49 +02:00
Cockpit Project
178ad4bc9e package.json: Update core-js
Closes #452
2021-04-23 06:10:20 +02:00
Cockpit Project
6356bc70b2 package.json: Update @patternfly/react-core, @patternfly/patternfly
Closes #451
2021-04-22 06:36:08 +02:00
Cockpit Project
1d7aad7c52 package.json: Update core-js
Closes #450
2021-04-20 06:09:02 +02:00
Martin Pitt
180a48caaa Bump cockpit test/common and lib to 242
731fdf82c0 fixed the
deprecation warning in cockpit-po-plugin:

> node:37175) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning:
> Compilation.assets will be frozen in future, all modifications are
> deprecated.
> BREAKING CHANGE: No more changes should happen to Compilation.assets
> after sealing the Compilation.
2021-04-19 10:33:02 +02:00
Martin Pitt
b5610000b5 fmf: Add glibc-langpack-de test dependency
The tests switch to German, make sure that the corresponding locale
exists. Otherwise, tests will run into unexpected messages like "invalid
or unusable locale: de_DE.UTF-8".
2021-04-19 10:33:02 +02:00
Martin Pitt
d02579694d test: Adjust to language selector change in Cockpit 242
See bf1f645208
2021-04-19 09:46:48 +02:00
Martin Pitt
2624dbb891 Build and ship LICENSE file
Bring back terser-webpack-plugin from commit c52136c051 and re-enable
it. It builds the autogenerated dist/index.js.LICENSE.txt which is quite
important for shipping distribution packages -- c-{podman,machines} both
do this.

Backport 95021c336e
to make sure that the webpack for the release tarball is *actually*
built in production mode.
2021-04-12 08:45:52 +02:00
Martin Pitt
c52136c051 Move to webpack 5
We don't need to explicitly mention TerserJSPlugin any more (from commit
6b8611), as webpack 5 can now extend the `minimizer:` list with the
special `...` syntax.

This gets rid of several `npm install` warnings:

    deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

as well as 10 MB of node_modules.
2021-04-09 13:01:05 +02:00
Martin Pitt
45b8c2a45a spec: Don't fail if there are no map files 2021-04-09 13:01:05 +02:00
Martin Pitt
0e608d562a Use current babel/eslint integration
Fixes these `npm install` warnings:

> deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
> deprecated eslint-loader@4.0.2: This loader has been deprecated. Please use eslint-webpack-plugin
2021-04-09 09:46:56 +02:00
Martin Pitt
e449e94564 Move babel config into separate file
This works better with the current eslint loader, as then eslint and
babel can look at the same configuration. See
<https://babeljs.io/docs/en/config-files>.

This is similar to .eslintrc.json.
2021-04-09 09:46:56 +02:00
Martin Pitt
04d6c566c7 eslint: Drop some disabled but desirable warnings
Project authors can/should decide about these by themselves.
2021-04-09 09:46:56 +02:00
Martin Pitt
1744ec2f5d Ignore src/lib for eslint
This code comes from cockpit.git. Newer ESLint versions have a lot of
complaints about it, but in starter-kit we can't do anything about these
directly. Let's keep the stricter ESLint settings instead of ignoring a
lot more warnings to cover src/lib.
2021-04-09 09:46:56 +02:00
Cockpit Project
70351d9081 package.json: Update core-js
Closes #444
2021-04-08 06:28:43 +02:00
Cockpit Project
a8eeeefd58 package.json: Update core-js
Closes #443
2021-04-03 09:09:43 +02:00
Cockpit Project
28d6b456cb package.json: Update @patternfly/react-core
Closes #442
2021-04-02 08:12:56 +02:00
Cockpit Project
58cfb84de2 package.json: Update @patternfly/react-core, @patternfly/patternfly
Closes #441
2021-04-01 08:08:30 +02:00
Cockpit Project
957e7f157c package.json: Update @patternfly/react-core, @patternfly/patternfly
Closes #434
2021-03-10 05:48:05 +01:00
Martin Pitt
a26f4048c2 packit: Enable RPM builds and Fedora testing
Teach `make dist-gzip` to print the tarball name as last line, and use
it as `create-archive` action.

Add a `make print-version` command which packit can use. The builtin
default only works if there is at least one git tag, which is not the
case for starter-kit (which is never released).
2021-03-04 11:25:53 +01:00
Martin Pitt
09823650e2 Add FMF test metadata and scripts
Copy and adjust the browser.sh and run-test.sh scripts from
cockpit-podman, which we have used in Fedora/RHEL dist-git gating and
packit tests for a while.
2021-03-04 11:25:53 +01:00
Martin Pitt
603308d424 test: Make tests nondestructive
So that they can run in Packit and Fedora dist-git gating.
2021-03-04 11:25:53 +01:00
Martin Pitt
f02f0fd08f Move default TEST_OS to centos-8-stream
We don't run centos-7 in CI any more, and thus can't guarantee that it
works.
2021-03-04 07:43:16 +01:00
Martin Pitt
d4c81c9152 Bump cockpit test API to 239
Replace the deprecated wait_present().
2021-03-04 07:42:37 +01:00
Cockpit Project
6b40f35e04 package.json: Update core-js
Closes #430
2021-03-01 06:02:45 +01:00
Martin Pitt
b000d6b374 Bump cockpit component library to 238 2021-02-25 08:34:15 +01:00
Martin Pitt
4171293c48 Drop unused version numbers from package.json and manifest
This field was introduced in
https://github.com/cockpit-project/cockpit/pull/4964 as "purely
informational for now", and isn't even parsed by cockpit.

package.json's version would only be relevant for publishing NPM
modules, but cockpit pages are not that.

Neither starter-kit itself nor our derived projects like cockpit-podman
or cockpit-composer have ever maintained these two fields, so just get
rid of them.

This makes the git tag the single source of truth for the version
number.

Fixes #200
2021-02-25 07:50:55 +01:00
Katerina Koukiou
66c6e96406
livetest: fix cloning of repo
Previously it was checking out origin/master not the PR's branch.
2021-02-24 10:48:36 +01:00
Cockpit Project
350621b443 package.json: Update core-js
Closes #424
2021-02-19 05:46:23 +01:00
Cockpit Project
de806efe16 package.json: Update @patternfly/react-core, @patternfly/patternfly
Closes #423
2021-02-18 06:37:34 +01:00
Cockpit Project
6abb6b1944 package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #422
2021-02-17 06:51:12 +01:00