Skip to content

Commit

Permalink
check git status
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Oct 28, 2023
1 parent 0f90197 commit 1f5a18d
Showing 1 changed file with 84 additions and 2 deletions.
86 changes: 84 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
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

0 comments on commit 1f5a18d

Please sign in to comment.