Skip to content

Commit

Permalink
Bootstrap 'src/ya-comiste-rust' backend
Browse files Browse the repository at this point in the history
I am still working on the schema design so this is just a project bootstrap so I can setup all the things around it.
  • Loading branch information
mrtnzlml committed Nov 30, 2020
1 parent c5baeb2 commit b08d30d
Show file tree
Hide file tree
Showing 29 changed files with 2,657 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.rs]
indent_size = 4
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ updates:
interval: 'daily'
labels:
- 'dependencies'

- package-ecosystem: 'cargo'
directory: '/src/ya-comiste-rust/'
schedule:
interval: 'daily'
labels:
- 'dependencies'
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous Integration
name: Continuous Integration (JavaScript)

on: [push]

Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/continuous-integration-rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Continuous Integration (Rust)

on:
push:
paths:
- 'src/ya-comiste-rust/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2.3.4

- uses: actions-rs/toolchain@v1
with:
toolchain: stable

# https://github.com/actions-rs/cargo
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path src/ya-comiste-rust/Cargo.toml

# https://github.com/actions-rs/cargo
- name: Run all tests
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path src/ya-comiste-rust/Cargo.toml
2 changes: 1 addition & 1 deletion src/ya-comiste-react-native/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type EntrypointBlock {
Technically, `block` can always return any block, however, some combinations don't make sense.
It's up to the server to decide which blocks can be nested/returned and which cannot in the given context.
"""
block(supported: [String!]!): SDUIBlock
block(supported: [String!]!): SDUIBlock # TODO: more like `renderer` (?)
}

union SDUIBlock = CardBlock | DescriptionBlock | JumbotronBlock | ScrollViewHorizontalBlock
Expand Down
1 change: 1 addition & 0 deletions src/ya-comiste-rust/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target

0 comments on commit b08d30d

Please sign in to comment.