Skip to content

Commit

Permalink
ci: setup test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Salakar committed Jun 24, 2024
1 parent 8cba1a1 commit 6dc86e4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ runs:
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn
npm link
cd example
yarn
shell: bash
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: yarn typecheck

test:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -33,7 +33,8 @@ jobs:
uses: ./.github/actions/setup

- name: Run unit tests
run: yarn test --maxWorkers=2 --coverage
working-directory: ./example
run: jet --target=macos --coverage

build-library:
runs-on: ubuntu-latest
Expand Down
3 changes: 0 additions & 3 deletions example/jest.config.js

This file was deleted.

10 changes: 5 additions & 5 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6232,7 +6232,7 @@ __metadata:
babel-jest: ^29.6.3
eslint: ^8.19.0
jest: ^29.6.3
jet: 0.9.0-dev.8
jet: "file:../"
prettier: 2.8.8
react: 18.2.0
react-native: 0.74.2
Expand Down Expand Up @@ -7189,9 +7189,9 @@ __metadata:
languageName: node
linkType: hard

"jet@npm:0.9.0-dev.8":
"jet@file:../::locator=io.invertase.testing%40workspace%3A.":
version: 0.9.0-dev.8
resolution: "jet@npm:0.9.0-dev.8"
resolution: "jet@file:../#../::hash=1ab396&locator=io.invertase.testing%40workspace%3A."
dependencies:
"@types/mocha": ^10.0.6
babel-plugin-istanbul: ^6.1.1
Expand All @@ -7207,8 +7207,8 @@ __metadata:
react: "*"
react-native: "*"
bin:
jet: jet.js
checksum: ad5815927bf1e32b6cbf1dafcfbf25e1d80ab43a6221453e2e52d8e5e4ee5a55ae28cb0fada48811d969208a6ca8affef6fa0446439069cc9edf5d474a12728f
jet: ./jet.js
checksum: a54cc8452959618b9c0bbfc00744783015a3bdae0c7036818386eeefa8fec0a86320a58ae0d2c552d27fd1ee2a192a14759d763d2bfa095a6e01d4c6c06d8274
languageName: node
linkType: hard

Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"exclude": ["example"],
"compilerOptions": {
"rootDir": ".",
"paths": {
Expand Down

0 comments on commit 6dc86e4

Please sign in to comment.