Verified Commit 809248ce authored by Adrian Pascu's avatar Adrian Pascu
Browse files

Offer the slower checks as manual jobs on merge requests and run every check on manual pipelines

parent faffa1f9
Loading
Loading
Loading
Loading
Loading
+13
Changes for .gitlab-ci.yml: 13 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ workflow:
        SAST_DISABLED: "true"
        SECRET_DETECTION_DISABLED: "true"
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
    - if: '$CI_PIPELINE_SOURCE == "web"'
    - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"

.pnpm_cache: &pnpm_cache
@@ -95,6 +96,7 @@ lint:
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != "schedule"'
    - if: '$CI_PIPELINE_SOURCE == "web"'
  cache:
    - <<: *pnpm_cache
      policy: pull
@@ -120,6 +122,7 @@ typecheck:
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != "schedule"'
    - if: '$CI_PIPELINE_SOURCE == "web"'
  cache:
    - <<: *pnpm_cache
      policy: pull
@@ -133,6 +136,7 @@ test:
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != "schedule"'
    - if: '$CI_PIPELINE_SOURCE == "web"'
  cache:
    - <<: *pnpm_cache
      policy: pull
@@ -154,6 +158,10 @@ browser-tests:
  rules:
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != "schedule"'
    - if: '$CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TASK == "linkcheck"'
    - if: '$CI_PIPELINE_SOURCE == "web"'
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
      when: manual
      allow_failure: true
  variables:
    COREPACK_HOME: $CI_PROJECT_DIR/.corepack
  cache:
@@ -211,6 +219,7 @@ link-check-local:
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != "schedule"'
    - if: '$CI_PIPELINE_SOURCE == "web"'
  script:
    - |
      if grep -rnE 'https?://(www\.)?hsbxl\.be' content/; then
@@ -228,6 +237,10 @@ link-check-remote:
  extends: .lychee
  rules:
    - if: '$CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TASK == "linkcheck"'
    - if: '$CI_PIPELINE_SOURCE == "web"'
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
      when: manual
      allow_failure: true
  resource_group: web-scanning
  timeout: 20m
  cache:
+11
Changes for README.md: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -147,6 +147,17 @@ Note: The default options are _hard coded_, if you want du change, you have to m

**2)** The uses the BitTorrent P2P protocol to share bandwidth between users by default to help lower the load on the server induce that your IP address is being stored in the instance’s BitTorrent tracker as long as you download or watch the video For [more info](https://indymotion.fr/about/peertube#privacy) read this Peertube statement.

## Checks on merge requests

A merge request runs the quick checks by itself. Two slower checks wait for you:

- `browser-tests` opens the built site in a browser and checks the main pages, including accessibility.
- `link-check-remote` checks every external link on the site.

To start one, open the merge request, go to **Pipelines**, open the newest pipeline and press the play button next to the check. They never block a merge.

To run every check at once on any branch, use **Build > Pipelines > Run pipeline** and pick the branch.

## License

This project is licensed under the [MIT License](LICENSE), as it was originally a [fork](https://gitlab.com/hsbxl/hsbxl-website/commit/b7674cac2be261e030170f4b9de7c653847543af) of the [Hugo Code Editor Theme](https://github.com/aubm/hugo-code-editor-theme), which also uses the [MIT License](https://github.com/aubm/hugo-code-editor-theme/blob/4217a2dd1b3b621898835f649e62cf736d5ac9d2/LICENSE.md).