From af7ff376e0494691916d8c6009403e306a9054c4 Mon Sep 17 00:00:00 2001 From: Robson Oliveira dos Santos Date: Sat, 25 May 2024 12:01:20 +0930 Subject: [PATCH] build: fix github actions --- .github/workflows/cd.yaml | 4 ++-- .github/workflows/ci.yaml | 31 +++++++++++++++++++------------ 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index cc96422..5bab901 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -9,7 +9,7 @@ permissions: jobs: cd: - runs-on: macos-12 + runs-on: macos-14 permissions: contents: write issues: write @@ -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..895c139 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,16 +9,26 @@ env: jobs: lint: - runs-on: macos-13 + runs-on: macos-14 steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 1 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'yarn' + - name: Install dependencies run: yarn install --frozen-lockfile + - name: Install SwiftLint + run: | + brew install swiftlint + - name: Lint run: yarn lint @@ -64,41 +74,38 @@ jobs: node-version: ${{ env.NODE_VERSION }} cache: 'yarn' + - name: Install dependencies + run: yarn install --frozen-lockfile + - name: Setup Java uses: actions/setup-java@v4 with: java-version: ${{ env.JAVA_VERSION }} distribution: 'zulu' - - name: Install dependencies - run: yarn install --frozen-lockfile - - name: Verify run: yarn verify:android verify-ios: - runs-on: macos-13 + runs-on: macos-14 steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 1 + - name: Set up Xcode + run: sudo xcode-select --switch /Applications/Xcode_15.4.app + - 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 - - name: Install dependencies run: yarn install --frozen-lockfile - - name: Lint - run: yarn lint - - name: Verify run: yarn verify:ios