From 2f5c8233f22929eacf2974f6d5880476caf05dbb Mon Sep 17 00:00:00 2001 From: Robson Oliveira dos Santos Date: Sat, 25 May 2024 11:28:15 +0930 Subject: [PATCH] build: fix github actions --- .github/workflows/cd.yaml | 2 +- .github/workflows/ci.yaml | 23 ++++++++++++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index cc96422..2e4eec6 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -24,7 +24,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: '.nvmrc' cache: 'yarn' - name: Install dependencies diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 57a7ebe..b2f1385 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ env: jobs: lint: - runs-on: macos-13 + runs-on: macos-14 steps: - name: Checkout uses: actions/checkout@v4 @@ -19,6 +19,14 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile + - name: Check SwiftLint version + run: swiftlint version + + - name: Locate SwiftLint + run: | + which swiftlint + export PATH="$PATH:/usr/local/bin" + - name: Lint run: yarn lint @@ -33,7 +41,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: '.nvmrc' cache: 'yarn' - name: Install plugin dependencies @@ -61,7 +69,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: '.nvmrc' cache: 'yarn' - name: Setup Java @@ -77,7 +85,7 @@ jobs: run: yarn verify:android verify-ios: - runs-on: macos-13 + runs-on: macos-14 steps: - name: Checkout uses: actions/checkout@v4 @@ -87,18 +95,15 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: '.nvmrc' cache: 'yarn' - name: Set up Xcode - run: sudo xcode-select --switch /Applications/Xcode_14.2.app + run: sudo xcode-select --switch /Applications/Xcode_15.4.app - name: Install dependencies run: yarn install --frozen-lockfile - - name: Lint - run: yarn lint - - name: Verify run: yarn verify:ios