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..9e5adb1 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,19 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile + - name: Locate SwiftLint + run: | + echo "Locating SwiftLint..." + which swiftlint || echo "SwiftLint not found" + find / -name swiftlint 2>/dev/null || echo "SwiftLint not found anywhere on the filesystem" + + - name: Add SwiftLint to PATH + if: steps.locate.outputs.swiftlint-path + run: | + echo "Adding SwiftLint to PATH..." + export PATH="$PATH:$(dirname $(find / -name swiftlint 2>/dev/null | head -n 1))" + swiftlint version + - name: Lint run: yarn lint @@ -33,7 +46,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 +74,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 +90,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 +100,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