Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(repo): add windows ci for testing #27

Merged
merged 1 commit into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/windows-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Windows Tests

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

jobs:
windows-tests:
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