Add Windows to GitHub Actions CI matrix
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/741 Reviewed By: jknoxville Differential Revision: D19371114 fbshipit-source-id: 07c6bd71e58011cc3fffa34354546eb773e3fc3d
This commit is contained in:
committed by
Facebook Github Bot
parent
11e134e87c
commit
5fd8db294a
@@ -10,7 +10,7 @@
|
||||
const fbjs = require('eslint-config-fbjs');
|
||||
|
||||
// enforces copyright header and @format directive to be present in every file
|
||||
const pattern = /^\*\n[\S\s]*Facebook[\S\s]* \* @format\n/;
|
||||
const pattern = /^\*\r?\n[\S\s]*Facebook[\S\s]* \* @format\r?\n/;
|
||||
|
||||
const prettierConfig = {
|
||||
requirePragma: true,
|
||||
|
||||
9
.github/workflows/nodejs.yml
vendored
9
.github/workflows/nodejs.yml
vendored
@@ -5,11 +5,12 @@ on: [push, pull_request]
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x, 12.x]
|
||||
os: ['ubuntu-latest', 'windows-latest']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
@@ -23,5 +24,9 @@ jobs:
|
||||
run: yarn lint
|
||||
- name: test
|
||||
run: yarn test
|
||||
- name: build
|
||||
- name: build linux
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: yarn build --linux
|
||||
- name: build windows
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: yarn build --win
|
||||
|
||||
@@ -13,6 +13,7 @@ import fs from 'fs';
|
||||
const validSerializedData = fs
|
||||
.readFileSync('src/utils/__tests__/data/settings-v1-valid.json')
|
||||
.toString()
|
||||
.replace(/\r\n/g, '\n')
|
||||
.trim();
|
||||
|
||||
const validDeserializedData =
|
||||
|
||||
Reference in New Issue
Block a user