mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-21 14:08:31 -04:00
* Bump detox * Update detox * Disable one test for now * Bump detox * Increase test timeouts * Collect more logs * Increase run timeout * Comment * Increase timeout * Replace password autofill workaround * Move workaround after launchApp * Upgrade github actions workflows * Forgot one action * Update test.yml * Testing concurrency * Use concurrency for e2e as well * Remove previous concurrency code * Testing different Slack action * Change slack msg * Try different msg * Revert "Try different msg" This reverts commitddaad331d1. * Revert "Change slack msg" This reverts commit852204b074. * Revert "Testing different Slack action" This reverts commitfb072e65e3. * Testing some more notify * Testing notification * Revert "Testing notification" This reverts commit974dfcb32f. * Revert "Testing some more notify" This reverts commit39b3d668e2.
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
##
|
|
# Run tests
|
|
##
|
|
name: Tests
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Node.js, NPM and Yarn
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
|
|
- name: Cache node modules
|
|
uses: actions/cache@v4
|
|
id: cache
|
|
with:
|
|
path: node_modules
|
|
key: node-modules-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
- name: Install Dependencies
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
run: npm install --legacy-peer-deps
|
|
|
|
- run: npm run lint
|
|
- run: npm test
|
|
|
|
notify:
|
|
name: Notify Slack
|
|
needs: test
|
|
if: ${{ success() || failure() }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: iRoachie/slack-github-actions@v2.3.0
|
|
if: env.SLACK_WEBHOOK_URL != null
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_BUILDS_WEBHOOK_URL }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|