.github/workflows/test.yml
{
name: Matrix Test,
on: [push, pull_request],
jobs:
{
test:
{
strategy:
{
matrix:
{
os: [ubuntu-latest, macos-latest, windows-latest],
node: [12, 14, 16],
},
},
name: 'Test on ${{ matrix.os }} with node.js v${{ matrix.node }}',
runs-on: '${{ matrix.os }}',
steps:
[
{ uses: actions/checkout@v2 },
{
uses: actions/setup-node@v1,
with: { node-version: '${{ matrix.node }}' },
},
{ run: yarn install-ci },
{ run: yarn test-ci },
],
},
},
}