Skip to content

Commit

Permalink
Merge pull request #294 from bitmovin/swiftlint-on-ci
Browse files Browse the repository at this point in the history
SwiftLint on CI
  • Loading branch information
rolandkakonyi authored Oct 17, 2023
2 parents 7b8c7bc + de059bc commit 3332c4f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v4

- 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
Expand All @@ -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
Expand Down Expand Up @@ -142,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
Expand Down Expand Up @@ -201,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
Expand Down

0 comments on commit 3332c4f

Please sign in to comment.