Skip to content

Commit

Permalink
Run Windows on CI (#2341)
Browse files Browse the repository at this point in the history
* Run Windows on CI

* try to normalize paths passed to source map generator

* Configure auto EOL in git attributes

* Split by path.sep in one of the tests

* Revert "try to normalize paths passed to source map generator"

This reverts commit 603c070.
  • Loading branch information
Andarist authored Apr 10, 2021
1 parent f36b946 commit 4d7efcb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
24 changes: 23 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
version: 2
version: 2.1

orbs:
win: circleci/windows@2.2.0

jobs:
flow:
docker:
Expand Down Expand Up @@ -46,6 +50,23 @@ jobs:
- store_artifacts:
path: reports/junit

test_windows:
executor: win/default
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v4-dependencies-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- v4-dependencies-
- run: yarn install --pure-lockfile
- run:
name: Jest Tests
command: yarn coverage --reporters=default --reporters=jest-junit
environment:
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'

test_dist:
docker:
- image: circleci/node:12
Expand Down Expand Up @@ -85,5 +106,6 @@ workflows:
jobs:
- flow
- test
- test_windows
- test_dist
- lint_and_typescript
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
3 changes: 2 additions & 1 deletion packages/babel-plugin/__tests__/css-requires-options.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @flow
import nodePath from 'path'
import babelTester from 'babel-tester'
import plugin from '@emotion/babel-plugin'

Expand Down Expand Up @@ -79,7 +80,7 @@ const cases = {
{
labelFormat: ({ name, path }) =>
`${name.toUpperCase()}_${last(
path.replace(/\..+$/, '').split('/')
path.replace(/\..+$/, '').split(nodePath.sep)
).toUpperCase()}`
}
]
Expand Down

0 comments on commit 4d7efcb

Please sign in to comment.