mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
test config in iso
This commit is contained in:
11
.github/workflows/e2e_ios.yml
vendored
11
.github/workflows/e2e_ios.yml
vendored
@@ -5,7 +5,7 @@ name: e2e-iOS
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
# push:
|
||||
push:
|
||||
# branches:
|
||||
# - 'main'
|
||||
|
||||
@@ -232,15 +232,10 @@ jobs:
|
||||
if: ${{ success() || failure() }}
|
||||
uses: ctrf-io/github-test-reporter@v1
|
||||
with:
|
||||
report-path: 'artifacts/*.json'
|
||||
github-report: true
|
||||
report-path: 'artifacts/ctrf-report.json'
|
||||
title: 'Detox e2e Test Results'
|
||||
test-report: true
|
||||
test-list-report: true
|
||||
suite-folded-report: true
|
||||
suite-list-report: true
|
||||
use-suite-name: true
|
||||
|
||||
|
||||
# The artifacts for the failing tests are available for download on github.com on the page of the individual actions run
|
||||
- name: Store Detox artifacts on test failure
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
131
.github/workflows/test.yml
vendored
131
.github/workflows/test.yml
vendored
@@ -18,77 +18,74 @@ jobs:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Publish Test Report (canned, also see if two stack)
|
||||
uses: ctrf-io/github-test-reporter@v1
|
||||
with:
|
||||
report-path: 'ctrf-report.json'
|
||||
# github-report: true
|
||||
title: 'Unit & Integration Test Results'
|
||||
# test-list-report: true
|
||||
suite-folded-report: true
|
||||
# suite-list-report: true
|
||||
# use-suite-name: true
|
||||
# test-report: true
|
||||
|
||||
# - name: Install Node.js, NPM and Yarn
|
||||
# uses: actions/setup-node@v4
|
||||
# with:
|
||||
# node-version: 22
|
||||
|
||||
# - name: Cache node modules
|
||||
# uses: actions/cache@v4
|
||||
# id: cache
|
||||
# with:
|
||||
# path: node_modules
|
||||
# key: node-modules-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
# # supposedly our current cache includes native modules like Realm
|
||||
# # that have compiled binaries specific to the environment where they were installed
|
||||
# # which might not be the same as the github actions environment
|
||||
# # so we need to rebuild them
|
||||
# - name: Rebuild native modules
|
||||
# if: steps.cache.outputs.cache-hit == 'true'
|
||||
# run: npm rebuild
|
||||
|
||||
# - name: Install dependencies
|
||||
# if: steps.cache.outputs.cache-hit != 'true'
|
||||
# run: npm install
|
||||
|
||||
# # 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 regardless of previous linting / testing steps
|
||||
# if: ${{ success() || failure() }}
|
||||
# run: |
|
||||
# npm run test:unit
|
||||
# mv artifacts/ctrf-report.json artifacts/unit-ctrf-report.json
|
||||
|
||||
# - name: Integration tests
|
||||
# # run regardless of previous linting / testing steps
|
||||
# if: ${{ success() || failure() }}
|
||||
# run: |
|
||||
# npm run test:integration
|
||||
# mv artifacts/ctrf-report.json artifacts/integration-ctrf-report.json
|
||||
|
||||
# - name: Publish Test Report
|
||||
# if: ${{ success() || failure() }}
|
||||
# - name: Publish Test Report (canned, also see if two stack)
|
||||
# uses: ctrf-io/github-test-reporter@v1
|
||||
# with:
|
||||
# report-path: 'artifacts/*.json'
|
||||
# github-report: true
|
||||
# report-path: 'ctrf-report.json'
|
||||
# # github-report: true
|
||||
# title: 'Unit & Integration Test Results'
|
||||
# test-report: true
|
||||
# test-list-report: true
|
||||
# # test-list-report: true
|
||||
# suite-folded-report: true
|
||||
# suite-list-report: true
|
||||
# use-suite-name: true
|
||||
|
||||
- name: Install Node.js, NPM and Yarn
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v4
|
||||
id: cache
|
||||
with:
|
||||
path: node_modules
|
||||
key: node-modules-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
# supposedly our current cache includes native modules like Realm
|
||||
# that have compiled binaries specific to the environment where they were installed
|
||||
# which might not be the same as the github actions environment
|
||||
# so we need to rebuild them
|
||||
- name: Rebuild native modules
|
||||
if: steps.cache.outputs.cache-hit == 'true'
|
||||
run: npm rebuild
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: npm install
|
||||
|
||||
# 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 regardless of previous linting / testing steps
|
||||
if: ${{ success() || failure() }}
|
||||
run: |
|
||||
npm run test:unit
|
||||
mv artifacts/ctrf-report.json artifacts/unit-ctrf-report.json
|
||||
|
||||
- name: Integration tests
|
||||
# run regardless of previous linting / testing steps
|
||||
if: ${{ success() || failure() }}
|
||||
run: |
|
||||
npm run test:integration
|
||||
mv artifacts/ctrf-report.json artifacts/integration-ctrf-report.json
|
||||
|
||||
- name: Publish Test Report
|
||||
if: ${{ success() || failure() }}
|
||||
uses: ctrf-io/github-test-reporter@v1
|
||||
with:
|
||||
report-path: 'artifacts/*.json'
|
||||
github-report: true
|
||||
title: 'Unit & Integration Test Results'
|
||||
test-report: true
|
||||
test-list-report: true
|
||||
suite-folded-report: true
|
||||
suite-list-report: true
|
||||
use-suite-name: true
|
||||
|
||||
# notify:
|
||||
# name: Notify Slack
|
||||
|
||||
Reference in New Issue
Block a user