From b713d108f166d14eb198c21b3f42f5e17af9cbbf Mon Sep 17 00:00:00 2001 From: Robson Oliveira dos Santos Date: Mon, 18 Dec 2023 18:02:07 -0300 Subject: [PATCH] ci: optimize CI --- .github/workflows/ci.yaml | 47 ++++++++++++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9261f11..3055d4e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,22 +8,60 @@ env: JAVA_VERSION: 17 jobs: - ci: + lint: runs-on: macos-13 steps: - name: Checkout uses: actions/checkout@v3 with: - fetch-depth: 0 + fetch-depth: 1 + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Lint + run: yarn lint + + verify-ios: + runs-on: macos-13 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 1 - name: Setup Node.js uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} + cache: 'yarn' - name: Set up Xcode run: sudo xcode-select --switch /Applications/Xcode_14.2.app + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Lint + run: yarn lint + + - name: Verify + run: yarn verify:ios + + verify-android: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 1 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_VERSION }} + cache: 'yarn' + - name: Setup Java uses: actions/setup-java@v3 with: @@ -33,8 +71,5 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile - - name: Lint - run: yarn lint - - name: Verify - run: yarn verify + run: yarn verify:android