GitHub Actions (#3298)

* actions

* remove bitrise triggers
pull/3299/head^2
ricky 2 years ago committed by GitHub
parent 1d9e295c60
commit ff66733740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 46
      .github/workflows/ci.yml
  2. 7
      .gitmodules
  3. 2
      app/util/testSetup.js
  4. 7
      bitrise.yml

@ -0,0 +1,46 @@
name: CI
on: [push]
jobs:
build-lint-audit-test:
name: Build, Lint, Audit, and Test
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Get Yarn cache directory
run: |
YARN_CACHE_DIR=$(yarn cache dir)
echo $YARN_CACHE_DIR
echo "::set-output name=YARN_CACHE_DIR::$YARN_CACHE_DIR"
id: yarn-cache-dir
- name: Get Node version
run: |
node -v
- name: Get Yarn version
run: |
YARN_VERSION=$(yarn --version)
echo $YARN_VERSION
echo "::set-output name=YARN_VERSION::$YARN_VERSION"
id: yarn-version
- name: Cache yarn dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir.outputs.YARN_CACHE_DIR }}
key: yarn-cache-${{ runner.os }}-${{ steps.yarn-version.outputs.YARN_VERSION }}-${{ hashFiles('yarn.lock') }}
- run: yarn --frozen-lockfile
- run: yarn lint
- run: yarn audit:ci
- run: NODE_OPTIONS=--max_old_space_size=20480 yarn test:unit --forceExit --silent
all-jobs-pass:
name: All jobs pass
runs-on: ubuntu-20.04
needs:
- build-lint-audit-test
steps:
- run: echo "Great success!"

7
.gitmodules vendored

@ -1,9 +1,6 @@
[submodule "mixpanel-iphone"]
path = mixpanel-iphone
url = git@github.com:mixpanel/mixpanel-iphone.git
[submodule "ios/mixpanel-iphone"]
path = ios/mixpanel-iphone
url = git@github.com:mixpanel/mixpanel-iphone.git
url = https://github.com/mixpanel/mixpanel-iphone
[submodule "ios/branch-ios-sdk"]
path = ios/branch-ios-sdk
url = git@github.com:BranchMetrics/ios-branch-deep-linking-attribution.git
url = https://github.com/BranchMetrics/ios-branch-deep-linking-attribution

@ -9,6 +9,8 @@ import mockClipboard from '@react-native-clipboard/clipboard/jest/clipboard-mock
Enzyme.configure({ adapter: new Adapter() });
jest.useFakeTimers();
jest.mock('react-native-fs', () => ({
CachesDirectoryPath: jest.fn(),
DocumentDirectoryPath: jest.fn(),

@ -2,13 +2,6 @@
format_version: '8'
default_step_lib_source: 'https://github.com/bitrise-io/bitrise-steplib.git'
project_type: react-native
trigger_map:
- push_branch: 'develop'
workflow: ci_test
- push_branch: 'main'
workflow: ci_test
- pull_request_source_branch: '*'
workflow: ci_test
workflows:
# Code Setups
setup:

Loading…
Cancel
Save