mirror of
https://github.com/FormidableLabs/react-fast-compare.git
synced 2026-01-18 16:13:59 +00:00
40 lines
914 B
YAML
40 lines
914 B
YAML
---
|
|
name: Pull Request
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
- windows-latest
|
|
node_version:
|
|
- 12
|
|
- 14
|
|
- 16
|
|
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
|
|
steps:
|
|
- name: Use LF EOL
|
|
if: ${{ matrix.os == 'windows-latest' }}
|
|
run: |
|
|
git config --global core.autocrlf false
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Setup node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node_version }}
|
|
- name: Test
|
|
run: |
|
|
yarn install --frozen-lockfile
|
|
yarn test
|
|
- name: Test IE
|
|
if: ${{ matrix.os == 'windows-latest' }}
|
|
run: |
|
|
yarn install --frozen-lockfile
|
|
yarn test-ie
|