Skip to content

Commit

Permalink
update unit test workflow to run in windows (#240)
Browse files Browse the repository at this point in the history
Updates our unit tests workflow to run tests in windows.
Many tests are not passing for a variety of reasons.
I separated the studio and studio-plugin tests into two separate tests to make it easier to read in the github action output.

J=SLAP-2784
TEST=auto
  • Loading branch information
oshi97 authored Jun 27, 2023
1 parent 79f7c1b commit e1b2254
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,25 @@ on:

jobs:
unit_tests:
uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1
with:
node_matrix: '["16.x", "18.x", "19.x"]'
build_script: "npm run build -w=packages/studio-plugin"
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
node-version: [16.x, 18.x, 19.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- run: npm ci --ignore-scripts
- run: npm rebuild
- run: npm run build -w=packages/studio-plugin
- run: npm test -w=packages/studio-plugin
- run: npm test -w=packages/studio
if: success() || failure()

test_build:
strategy:
Expand Down

0 comments on commit e1b2254

Please sign in to comment.