Skip to content

Commit

Permalink
Merge pull request #89 from friederbluemle/update-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
friederbluemle authored Nov 5, 2021
2 parents b4419d0 + 2adf611 commit 709d09e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
name: ci
on:
push:
branches: '*'
branches: ['master']
pull_request:
jobs:
build:
strategy:
matrix:
node: [12]
node: ['16']
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- node: 10
- node: '12'
os: ubuntu-latest
- node: 14
- node: '14'
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: yarn --frozen-lockfile
test-android:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: yarn --frozen-lockfile
- name: Run Android tests
uses: reactivecircus/android-emulator-runner@v2
Expand All @@ -35,11 +36,16 @@ jobs:
working-directory: ./android
script: ./gradlew connectedCheck
test-ios:
runs-on: macos-latest
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '12.0'
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: yarn --frozen-lockfile
- name: Run iOS tests
working-directory: ./ios
run: xcodebuild -project "ElectrodeReactNativeBridge.xcodeproj" -scheme "ElectrodeReactNativeBridgeTests" -destination "platform=iOS Simulator,name=iPhone 8" test
run: xcodebuild -scheme "ElectrodeReactNativeBridgeTests" -destination "platform=iOS Simulator,name=iPhone 8" test
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: publish
on:
push:
tags: v[0-9]+.[0-9]+.[0-9]+
tags: ['v[0-9]+.[0-9]+.[0-9]+']
jobs:
publish:
if: github.event.repository.fork == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- run: yarn --frozen-lockfile
- run: npm publish --access public
Expand Down

0 comments on commit 709d09e

Please sign in to comment.