@lernapps/tooling 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,6 +32,11 @@ const base: PlaywrightTestConfig = {
32
32
  // another number of workers: the tooling's own tests set 1, because they run many apps' checks at the same time.
33
33
  fullyParallel: true,
34
34
  workers: Number(process.env["LERNAPPS_PLAYWRIGHT_WORKERS"]) || "75%",
35
+ // On CI (a small shared runner) a single interaction can now and then wait past the timeout under load
36
+ // (lernapps/app-templates#125): a failed test runs up to twice more there. One that passes on a retry counts as
37
+ // "flaky" in the output, not as passed, so it stays visible; a test that fails every time still fails the check.
38
+ // Locally no retry, so that a test that only sometimes passes shows up while the app is written.
39
+ retries: process.env["CI"] ? 2 : 0,
35
40
  reporter: [["line"]],
36
41
  // LERNAPPS_CHROMIUM: an installed Chromium that lernapps check starts where Playwright's own is missing
37
42
  // (check/visit.ts)
@@ -18,6 +18,7 @@ const base = {
18
18
  forbidOnly: true,
19
19
  fullyParallel: true,
20
20
  workers: Number(process.env["LERNAPPS_PLAYWRIGHT_WORKERS"]) || "75%",
21
+ retries: process.env["CI"] ? 2 : 0,
21
22
  reporter: [["line"]],
22
23
  use: {
23
24
  baseURL: URL,
@@ -15,7 +15,9 @@ name: Pages
15
15
  # paths filter: a check skipped by a paths filter stays "Pending" and blocks a pull request that requires it. GitHub
16
16
  # may start no run for a push that creates main from commits it already has (the first publish): then start it by
17
17
  # hand, Actions → Pages → Run workflow on main (gh workflow run Pages --ref main), as the plan says; a run started by
18
- # hand checks and publishes everything.
18
+ # hand checks and publishes everything. A push to main whose commit has the same tree as the pull request that the job
19
+ # `app` checked already (the pull request was up to date with main when it was merged) takes that run's bundle and
20
+ # report instead of checking again.
19
21
  on:
20
22
  push:
21
23
  branches: [main]
@@ -34,6 +36,9 @@ jobs:
34
36
  app:
35
37
  if: github.event.action != 'closed'
36
38
  runs-on: ubuntu-latest
39
+ permissions:
40
+ contents: read
41
+ actions: read # on main: find the run of the pull request that checked the same tree, and take its result
37
42
  steps:
38
43
  - uses: lernapps/tooling/actions/app-check@{{tooling}}
39
44
  deploy:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lernapps/tooling",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Shared tooling of the lernapps.net apps and sites: the CLI lernapps, site actions, Renovate preset, guidance for building apps; documentation at https://lernapps.net/tooling/",
5
5
  "license": "MIT",
6
6
  "repository": {