-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Use yaml-rust2 to get line numbers for better errors
- Loading branch information
Showing
14 changed files
with
929 additions
and
220 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
# yaml-language-server: $schema=https://schema.blue-build.org/module-list-v1.json | ||
modules: | ||
# Tests installing rpms from a combo image stage | ||
- type: akmods | ||
install: openrazer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
# yaml-language-server: $schema=https://schema.blue-build.org/module-stage-list-v1.json | ||
stages: | ||
- name: ubuntu-test | ||
from: | ||
- ubuntu | ||
modules: {} | ||
- name: debian-test | ||
from: debian | ||
modules: | ||
- from-file: stages.yml | ||
- name: fedora-test | ||
from: fedora | ||
modules: | ||
- from-file: stages.yml | ||
- name: alpine-test | ||
from: alpine | ||
modules: | ||
- from-file: stages.yml | ||
modules: | ||
- type: files | ||
files: | ||
- usr: /usr | ||
- type: script | ||
scripts: | ||
- example.sh | ||
snippets: | ||
- echo "test" > /test.txt | ||
- type: test-module | ||
source: local | ||
- type: containerfile | ||
containerfiles: | ||
- labels | ||
snippets: | ||
- RUN echo "This is a snippet" | ||
- type: rpm-ostree | ||
install: micro |
58 changes: 58 additions & 0 deletions
58
integration-tests/test-repo/recipes/recipe-invalid-from-file.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
# yaml-language-server: $schema=https://schema.blue-build.org/recipe-v1.json | ||
name: cli/test | ||
description: This is my personal OS image. | ||
base-image: ghcr.io/ublue-os/silverblue-main | ||
image-version: 40 | ||
stages: | ||
- from-file: invalid-stages.yml | ||
modules: | ||
- from-file: invalid-module.yml | ||
- from-file: flatpaks.yml | ||
|
||
- type: files | ||
files: | ||
- source: usr | ||
destination: /usr | ||
|
||
- type: script | ||
scripts: | ||
- example.sh | ||
|
||
- type: rpm-ostree | ||
repos: | ||
- https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-%OS_VERSION%/atim-starship-fedora-%OS_VERSION%.repo | ||
install: | ||
- micro | ||
- starship | ||
remove: | ||
- firefox | ||
- firefox-langpacks | ||
|
||
- type: signing | ||
|
||
- type: test-module | ||
source: local | ||
|
||
- type: containerfile | ||
containerfiles: | ||
- labels | ||
snippets: | ||
- RUN echo "This is a snippet" && ostree container commit | ||
|
||
- type: copy | ||
from: alpine-test | ||
src: /test.txt | ||
dest: / | ||
- type: copy | ||
from: ubuntu-test | ||
src: /test.txt | ||
dest: / | ||
- type: copy | ||
from: debian-test | ||
src: /test.txt | ||
dest: / | ||
- type: copy | ||
from: fedora-test | ||
src: /test.txt | ||
dest: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.