mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-09-16 07:44:34 -04:00
* Remove our own cache action to rely on setup-node cache in test
* Remove our own cache action to rely on setup-node cache in crowdin-pull
* Remove our own cache action to rely on setup-node cache in ios e2e
* Remove our own cache action to rely on setup-node cache in android e2e
* Trigger new CI run
To test with an existing cache
* Revert "Trigger new CI run"
This reverts commit 2a94b1b498.
---------
Co-authored-by: Johannes Klein <17345891+jtklein@users.noreply.github.com>
56 lines
1.1 KiB
YAML
56 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@v6
|
|
|
|
- name: Install Node.js, NPM and Yarn
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
# Need this for linting Ruby
|
|
- name: Install Ruby and gems
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
bundler-cache: true
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
|
|
- name: Unit tests
|
|
run: npm run test:unit
|
|
|
|
- name: Integration tests
|
|
run: npm run test:integration
|
|
|
|
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 }}
|