Merge pull request #255 from klever-io/refactor/kos-go #805
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: KOS-RS Checks | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - master | |
| paths-ignore: | |
| - '**/*.md' | |
| - '.gitignore' | |
| - '.github/**' | |
| pull_request: | |
| branches: | |
| - develop | |
| - master | |
| paths-ignore: | |
| - '**/*.md' | |
| - '.gitignore' | |
| - '.github/**' | |
| - 'packages/kos-go/kos_mobile/lib/**' | |
| jobs: | |
| format: | |
| runs-on: ubuntu-latest | |
| env: | |
| USER: ${{ secrets.GIT_USER }} | |
| TOKEN: ${{ secrets.GIT_PASS }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: RustUp | |
| uses: klever-io/kos-rs/.github/actions/rustup@develop | |
| with: | |
| with_cache: true | |
| - name: Lint | |
| run: | | |
| cargo fmt --all -- --check | |
| cargo clippy -- -D warnings | |
| - name: checks | |
| run: | | |
| cargo pants | |
| - name: Run Tests | |
| run: cargo test --workspace --exclude kos-hardware | |
| build: | |
| needs: [ format ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: RustUp | |
| uses: klever-io/kos-rs/.github/actions/rustup@develop | |
| with: | |
| with_cache: true | |
| - name: Build | |
| run: make webpack-npm |