Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
reime005 committed Mar 20, 2020
1 parent caf5f08 commit cd7eb77
Show file tree
Hide file tree
Showing 17 changed files with 1,100 additions and 1,616 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
example/RNBackgroundExample/node_modules
example/RNBackgroundExample/e2e
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: '@react-native-community',
};
12 changes: 8 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,22 @@ jobs:

- name: Setup Android emulator
run: |
echo y | sudo $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-28;google_apis;x86_64"
echo y | sudo $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-28;google_apis;x86_64" > /dev/null
$ANDROID_HOME/tools/bin/avdmanager -s create avd -n emu -k "system-images;android-28;google_apis;x86_64" -b "x86_64" -c 1G -d 7 -f
- name: Install node_modules & deploy
- name: Install node_modules
working-directory: example/RNBackgroundExample/
run: |
run:
yarn install --frozen-lockfile

- name: Deploy
working-directory: example/RNBackgroundExample/
run:
yarn e2e/deploy/android

- name: Android test
working-directory: example/RNBackgroundExample/
timeout-minutes: 10
timeout-minutes: 15
run: |
mkdir -p ./artifacts
export PATH=$PATH:$ANDROID_HOME/platform-tools
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/iOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ jobs:
brew tap wix/brew
brew install applesimutils
- name: Install node_modules & deploy
- name: Install node_modules
working-directory: example/RNBackgroundExample/
run: |
run:
yarn install --frozen-lockfile

- name: Deploy
working-directory: example/RNBackgroundExample/
run:
yarn deploy/release/ios

- name: iOS test
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Node Environment

on: [push, pull_request]

jobs:
node-lint-tests:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"

steps:
- name: checkout
uses: actions/checkout@v1

- name: setup node
uses: actions/setup-node@v1
with:
node-version: 12

- name: install node_modules
run: yarn install --frozen-lockfile

- name: node lint
run:
yarn lint:ci
6 changes: 6 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
bracketSpacing: false,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: 'all',
};
5 changes: 0 additions & 5 deletions commitlint.config.js

This file was deleted.

Loading

0 comments on commit cd7eb77

Please sign in to comment.