5 Commits

Author SHA1 Message Date
Simx72
0b4e537b2c fix environment variable (#59)
Hello,

On Zed editor, when opening the file `Rust/.woodpecker.yaml`, it lints as danger (red) line 9:

031e75e884/Rust/.woodpecker.yaml (L9)

stating that:

```
yaml-schema: Woodpecker pipeline config: Incorrect type. Expected "step_environment".
```

But it can easily be fixed changing it to:

```diff
-   environment: [CARGO_TERM_COLOR=always]
+   environment:
+     CARGO_TERM_COLOR: always
```

as shown here:
https://woodpecker-ci.org/docs/usage/environment

Zed editor shows it is an error according to the schema in
https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/pipeline/frontend/yaml/linter/schema/schema.json

Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/59
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Simx72 <angel2600@proton.me>
Co-committed-by: Simx72 <angel2600@proton.me>
2024-11-21 13:23:39 +00:00
pat-s
5ffed3d2fa Add link checker and prettier (#49)
Adapted from WP main repo.

Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/49
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2024-04-10 07:16:10 +00:00
pat-s
8df9d19ef4 Linters and related fixes (#39)
- Add yamllint
- Add markdownlint
- Add precommit config
- Add editorconfig
- Rename `.yml` to `.yaml`
- Add CI workflow to enforce lint rules

Configs are taken from Woodpecker org lint rules.

Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/39
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2024-01-31 16:32:05 +00:00
6543
5444d19d75 Update Syntax to match newest guidelines (#30)
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/30
2023-06-09 15:43:19 +00:00
trevyn
ce91c66168 Add a Rust example 2022-10-19 13:48:44 +04:00