diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 131f337..c742e11 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,13 +1,12 @@ -name: Node -on: [push] +name: Linux +on: [push, pull_request] jobs: test: - name: Node ${{ matrix.node-version }} . ${{ matrix.os }} - runs-on: ${{ matrix.os }} + name: Linux ${{ matrix.node-version }} + runs-on: ubuntu-latest strategy: matrix: node-version: [12, 14, 16] - os: [ubuntu-latest] # failing on [windows-latest, macOS-latest] steps: - uses: actions/checkout@v1 - name: Use Node.js ${{ matrix.node-version }} diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..d7ef5a7 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,17 @@ +name: MacOS +on: [push, pull_request] +jobs: + test: + name: MacOS ${{ matrix.node-version }} + runs-on: macOS-latest + strategy: + matrix: + node-version: [12, 14, 16] + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm i + - run: npm test diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..a37ec8a --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,18 @@ +name: Windows +on: [push, pull_request] +jobs: + test: + name: Node ${{ matrix.node-version }} + runs-on: windows-latest + strategy: + matrix: + node-version: [12, 14, 16] + os: [ubuntu-latest] # failing on [windows-latest, macOS-latest] + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm i + - run: npm test