test config in iso

This commit is contained in:
Ryan Stelly
2025-12-12 17:04:58 -06:00
parent ba968185c6
commit 8ab4ce36c3
2 changed files with 67 additions and 75 deletions

View File

@@ -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

View File

@@ -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