-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* π· Add Windows CI workflow * π¨ Fix Windows babel registration * β Fix cli-config tests for Windows * β Fix config tests for Windows * π Ignore rimraf errors on tmp cleanup * β¬ Upgrade interactor.js from 2.0.0-beta.9 to 2.0.0-beta.10 * β Remove explicit browser install test This script must work for any tests to work. Since it is technically tested by running before tests, it does not generate coverage. In order to generate coverage, the existing browser install directory is deleted within the test. This causes issues on Windows and actually makes the test suite slower overall. Removing the test solves the issue on Windows, speeds up the test suite, and is still required to work for almost any tests. * β Use platform agnostic command for exec tests * π End browser process pipes during cleanup This is needed specifically for Windows
- Loading branch information
Wil Wilsman
authored
Feb 23, 2021
1 parent
47bc76a
commit d168ffb
Showing
13 changed files
with
115 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Windows | ||
on: push | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: v1/${{ runner.os }}/node-12/${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: v1/${{ runner.os }}/node-12/ | ||
- run: yarn | ||
- run: yarn build | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: packages/*/dist | ||
|
||
test: | ||
name: Test ${{ matrix.package }} | ||
needs: [build] | ||
strategy: | ||
matrix: | ||
package: | ||
- '@percy/env' | ||
- '@percy/client' | ||
- '@percy/dom' | ||
- '@percy/logger' | ||
- '@percy/config' | ||
- '@percy/core' | ||
- '@percy/cli' | ||
- '@percy/cli-command' | ||
- '@percy/cli-exec' | ||
- '@percy/cli-snapshot' | ||
- '@percy/cli-upload' | ||
- '@percy/cli-build' | ||
- '@percy/cli-config' | ||
- '@percy/sdk-utils' | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: v1/${{ runner.os }}/node-12/${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: v1/${{ runner.os }}/node-12/ | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: dist | ||
path: packages | ||
- run: yarn | ||
- name: Run tests | ||
run: yarn workspace ${{ matrix.package }} test --colors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters