diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000000..0dda191fa55 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 11 + + - name: Set up Android SDK + uses: android-actions/setup-android@v2 + + - name: Set up Node + uses: actions/setup-node@v2 + with: + node-version: '12' + check-latest: true + + - name: Run yarn install + # Despite the name, this action sees the yarn.lock + # and runs yarn install with caching + uses: bahmutov/npm-install@v1 + + - name: Run tools/test + run: TERM=dumb tools/test --full + + - run: tools/verify-webview-js + +# Note: if running a release build, this command is required: +# echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p +# See the mention of `inotify` in docs/. If we attempt assembleRelease, +# then without this line the JS bundle step fails with a baffling ENOSPC +# error, even though there's tons of free space on the filesystem. diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 992309d2cde..00000000000 --- a/.travis.yml +++ /dev/null @@ -1,46 +0,0 @@ -dist: trusty - -language: android - -jdk: oraclejdk8 - -env: - global: - - COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv - -android: - components: - # all the android components used in the zulip-mobile and it's dependencies - - tools - - platform-tools - - build-tools-28.0.3 - - android-29 # corresponds to compileSdkVersion - - extra-google-m2repository - - extra-android-m2repository - - extra-google-android-support - - licenses: - - 'android-sdk-license-.+' - -notifications: - email: false - webhooks: - urls: - - https://zulip.org/zulipbot/travis - on_success: always - on_failure: always - -install: - - nvm install 12 - - node --version - - npm i yarn -g - - yarn - - # See the mention of `inotify` in docs/. If we attempt assembleRelease, - # then without this line the JS bundle step fails with a baffling ENOSPC - # error, even though there's tons of free space on the filesystem. - - echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p - -script: - - TERM=dumb tools/test --full - - tools/verify-webview-js