diff options
| author | veradec <glitchmill.dyj3d@simplelogin.co> | 2026-09-11 20:54:45 +0530 |
|---|---|---|
| committer | veradec <glitchmill.dyj3d@simplelogin.co> | 2026-09-11 20:54:45 +0530 |
| commit | c5ea100a46484b5d2edf79ecfee654dfd1d2443c (patch) | |
| tree | 2f53715dc08026ccd978d385a3a8fe59ed3cbabd | |
| parent | a060f1983fc5901c1fbf876cb499244d16e64432 (diff) | |
feat: ci/cd pipelines
| -rw-r--r-- | .github/workflows/ci.yml | 24 | ||||
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | example/mis-match.okml | 17 | ||||
| -rw-r--r-- | example/syntax.okml | 31 |
4 files changed, 72 insertions, 1 deletions
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 @@ -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 |
