feat: SQL service (tinycloud.sql/*) #121
Workflow file for this run
This file contains hidden or 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
| name: ci | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| pkg: ["tinycloud-lib", ".", "tinycloud-sdk-rs", "tinycloud-sdk-wasm"] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout TinyCloud repository | |
| uses: actions/checkout@v4 | |
| - name: Add WASM target | |
| if: ${{ matrix.pkg == 'sdk-wasm' }} | |
| run: | | |
| rustup target add wasm32-unknown-unknown | |
| - name: Build | |
| working-directory: ${{ matrix.pkg }} | |
| run: cargo build | |
| - name: Run tests | |
| if: ${{ matrix.pkg != 'sdk-wasm' }} | |
| working-directory: ${{ matrix.pkg }} | |
| run: cargo test | |
| clippy: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| pkg: ["tinycloud-lib", ".", "tinycloud-sdk-rs", "tinycloud-sdk-wasm"] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout TinyCloud repository | |
| uses: actions/checkout@v4 | |
| - name: Add WASM target | |
| if: ${{ matrix.pkg == 'sdk-wasm' }} | |
| run: | | |
| rustup target add wasm32-unknown-unknown | |
| - name: Clippy | |
| working-directory: ${{ matrix.pkg }} | |
| run: RUSTFLAGS="-Dwarnings" cargo clippy | |
| fmt: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| pkg: ["tinycloud-lib", ".", "tinycloud-sdk-rs", "tinycloud-sdk-wasm"] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout TinyCloud repository | |
| uses: actions/checkout@v4 | |
| - name: Add WASM target | |
| if: ${{ matrix.pkg == 'sdk-wasm' }} | |
| run: | | |
| rustup target add wasm32-unknown-unknown | |
| - name: Fmt | |
| working-directory: ${{ matrix.pkg }} | |
| run: cargo fmt -- --check |