Skip to content

Commit

Permalink
build: fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
robsonos committed May 25, 2024
1 parent d9ae875 commit d6dea3c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
cd:
runs-on: macos-12
runs-on: macos-14
permissions:
contents: write
issues: write
Expand All @@ -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
Expand Down
35 changes: 21 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,31 @@ 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

build-example:
runs-on: ubuntu-latest
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -51,7 +61,7 @@ jobs:
working-directory: example

verify-android:
runs-on: ubuntu-latest
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -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

Expand Down

0 comments on commit d6dea3c

Please sign in to comment.