Skip to content

Commit

Permalink
chore(repo): add windows ci for testing
Browse files Browse the repository at this point in the history
add a windows-based ci workflow to run path-based unit tests on windows.
this allows us to gain a little more confidence when pushing out changes
that might affect platforms other than the one we develop on
  • Loading branch information
rwaskiewicz committed May 4, 2024
1 parent 0bd49a1 commit a8df231
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/main-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
merge_group:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: 'package.json'
cache: 'npm'
- name: Install dependencies
run: npm ci

- name: Run Tests
run: npm test -- --no-watch
3 changes: 2 additions & 1 deletion src/contributions/html-contributions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import { beforeEach, describe, expect, it } from 'vitest';
import { generateElementInfo } from './html-contributions';
import { ElementInfo } from '../index';
import { ComponentCompilerMeta } from '@stencil/core/internal';
import { join } from 'node:path';

const MOCK_STENCIL_ROOT_DIR = '/';
const MOCK_CLASS_COMPONENT_NAME = 'StubCmp';
const MOCK_MODULE_PATH = 'some/stubbed/path/my-component.tsx';
const MOCK_MODULE_PATH = join('some', 'stubbed', 'path', 'my-component.tsx');

describe('generateElementInfo', () => {
it('returns an empty array when no components are provided', () => {
Expand Down

0 comments on commit a8df231

Please sign in to comment.