From c5ea100a46484b5d2edf79ecfee654dfd1d2443c Mon Sep 17 00:00:00 2001 From: veradec Date: Fri, 11 Sep 2026 20:54:45 +0530 Subject: feat: ci/cd pipelines --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .gitignore | 1 - example/mis-match.okml | 17 +++++++++++++++++ example/syntax.okml | 31 +++++++++++++++++++++++++++++++ 4 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml create mode 100644 example/mis-match.okml create mode 100644 example/syntax.okml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b89d5db --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: Cargo Build & Test + +on: + push: + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + build_and_test: + name: Rust project - latest + runs-on: ubuntu-latest + strategy: + matrix: + toolchain: + - stable + - beta + - nightly + steps: + - uses: actions/checkout@v6 + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: cargo build --verbose + - run: cargo test --verbose \ No newline at end of file diff --git a/.gitignore b/.gitignore index 91596d5..ea8c4bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ /target -example/ diff --git a/example/mis-match.okml b/example/mis-match.okml new file mode 100644 index 0000000..e9ee780 --- /dev/null +++ b/example/mis-match.okml @@ -0,0 +1,17 @@ +name:okaml +version : 0.1.0 +price :1.1 +somehow:this\:\:belongs +somelist{ + has_key: true + this_has: astringvalue + sub_lists { sub_sublists { + isSubSub: yes + } } + bar: 123 + baz: 1204 +} + +multi_line:```this +is multi_line``` + diff --git a/example/syntax.okml b/example/syntax.okml new file mode 100644 index 0000000..1ad7b52 --- /dev/null +++ b/example/syntax.okml @@ -0,0 +1,31 @@ +name: okaml +version: 0.1.0 +price: 1.1 +somelist { + has_key: true + this_has: astringvalue + sub_lists { + sub_sublists { + isSubSub: yes + foo: false + some_multi: ``` + this is a very big + multi sub list + string in a sublist + ``` + } + try: yes + } + bar: 123 + baz: 1204 +} + +multi_line: ``` +this +is +multi_line +``` + +isBad: false +isWorse: no +isNull: null \ No newline at end of file -- cgit v1.2.3