From 2190ffdc9e356c5ef3e9847e67b758c3f718223e Mon Sep 17 00:00:00 2001 From: Roland Kakonyi Date: Mon, 16 Oct 2023 22:30:35 +0200 Subject: [PATCH 1/3] feat(swiftlintci): run SwiftLint on CI to validate changes --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c160338..cab851ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,26 @@ concurrency: cancel-in-progress: true jobs: + code-style-typescript: + name: Code style Typescript + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@4 + + - name: Setup node and npm registry + uses: actions/setup-node@v3 + with: + node-version: '16' + registry-url: 'https://registry.npmjs.org/' + cache: 'yarn' + + - name: Install node_modules + run: yarn install --frozen-lockfile + + - name: Lint Typescript + run: yarn lint + code-style-android: name: Code style Android runs-on: ubuntu-latest @@ -37,6 +57,23 @@ jobs: run: ./gradlew ktlintCheck working-directory: android + code-style-ios: + name: Code style iOS + runs-on: macOS-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '14.1' + + - name: Install dependencies + run: brew bundle install + + - name: Check code style + run: swiftlint --strict + test-build-typescript: name: Build Typescript runs-on: ubuntu-latest From 794fe7b7faf1a3284163cbade2754de4418ce295 Mon Sep 17 00:00:00 2001 From: Roland Kakonyi Date: Mon, 16 Oct 2023 22:32:11 +0200 Subject: [PATCH 2/3] feat(swiftlintci): fix action path --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cab851ce..304284f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@4 + uses: actions/checkout@v4 - name: Setup node and npm registry uses: actions/setup-node@v3 From de059bc045a9a832462b5ed2c96e0fa753b93855 Mon Sep 17 00:00:00 2001 From: Roland Kakonyi Date: Tue, 17 Oct 2023 11:22:46 +0200 Subject: [PATCH 3/3] feat(swiftlintci): run brew bundle install on CI --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 304284f2..3e64609e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -179,6 +179,9 @@ jobs: - name: Install node_modules (example/) run: yarn install --frozen-lockfile --cwd example + - name: Install dependencies + run: brew bundle install + - name: Restore Pods cache id: pods-cache-restore uses: actions/cache/restore@v3 @@ -238,6 +241,9 @@ jobs: - name: Install node_modules (example/) run: yarn install --frozen-lockfile --cwd example + - name: Install dependencies + run: brew bundle install + - name: Restore Pods cache id: pods-cache-restore uses: actions/cache/restore@v3