Skip to content

Commit

Permalink
Tweak CI configs (prettier#7860)
Browse files Browse the repository at this point in the history
* Only run on `master` push

* Test `CRLF` on windows
  • Loading branch information
fisker authored Mar 24, 2020
1 parent 7e016cb commit b9b5a66
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/dev-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Dev

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
test:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Lint

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
lint:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/prod-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Prod

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
build:
Expand Down
4 changes: 3 additions & 1 deletion tests_config/run_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ const path = require("path");
const raw = require("jest-snapshot-serializer-raw").wrap;
const { isCI } = require("ci-info");

const { TEST_STANDALONE, TEST_CRLF } = process.env;
const { TEST_STANDALONE } = process.env;
const AST_COMPARE = isCI || process.env.AST_COMPARE;
const DEEP_COMPARE = isCI || process.env.DEEP_COMPARE;
const TEST_CRLF =
(isCI && process.platform === "win32") || process.env.TEST_CRLF;

const CURSOR_PLACEHOLDER = "<|>";
const RANGE_START_PLACEHOLDER = "<<<PRETTIER_RANGE_START>>>";
Expand Down

0 comments on commit b9b5a66

Please sign in to comment.