From 1f5a18dde4e7ed22952600a7dc2cb45e746c1dd5 Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Sat, 28 Oct 2023 12:47:52 +0200 Subject: [PATCH] check git status --- .github/workflows/main.yml | 86 +++++++++++++++++++++++++++++++++++++- 1 file changed, 84 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 219389fc0..4b12959fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ name: CI on: # Triggers the workflow on push events but only for the "main" branch push: - branches: [ main ] + branches: [ main, ci-test-diff ] pull_request: # Allows you to run this workflow manually from the Actions tab @@ -174,4 +174,86 @@ jobs: cargo clippy -- -D warnings -A clippy::uninlined-format-args cargo clippy --tests -- -D warnings -A clippy::uninlined-format-args cd ../tools/sdk-cli - cargo clippy -- -D warnings \ No newline at end of file + cargo clippy -- -D warnings + + react-native: + name: Check react native + runs-on: macOS-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Install rust + run: | + rustup set auto-self-update disable + rustup toolchain install stable --profile minimal + + - uses: Swatinem/rust-cache@v2 + with: + workspaces: | + libs -> target + + - name: Install Protoc + uses: arduino/setup-protoc@v2 + with: + version: "23.4" + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: React native codegen + working-directory: libs/sdk-react-native + run: | + yarn global add tslint typescript + brew install kotlin ktlint swiftformat + make react-native-codegen + + - name: Check git status + run: | + if [[ `git status --porcelain` ]]; then + echo "Git status has changes" + exit 1 + else + echo "No changes in git status" + fi + + flutter: + name: Check react native + runs-on: macOS-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Install rust + run: | + rustup set auto-self-update disable + rustup toolchain install stable --profile minimal + + - uses: Swatinem/rust-cache@v2 + with: + workspaces: | + libs -> target + + - name: Install Protoc + uses: arduino/setup-protoc@v2 + with: + version: "23.4" + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - uses: subosito/flutter-action@v2 + with: + flutter-version: '3.7.12' + channel: 'stable' + + - name: Flutter bridge codegen + working-directory: libs/sdk-flutter + run: | + make init + make flutter_rust_bridge + + - name: Check git status + run: | + if [[ `git status --porcelain` ]]; then + echo "Git status has changes" + exit 1 + else + echo "No changes in git status" + fi \ No newline at end of file