2021-05-17 20:24:42 -04:00

44 lines
988 B
YAML

---
name: CI
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-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: Install Dependencies
run: yarn install --frozen-lockfile
- name: Test
run: yarn test
- name: Test IE
if: ${{ matrix.os == 'windows-latest' }}
run: yarn test-browser-ie
- name: Codecov
run: yarn codecov