From c64a13a8048106ca62f625960759888319885b3a Mon Sep 17 00:00:00 2001 From: 1000ch Date: Thu, 14 Oct 2021 23:05:51 +0900 Subject: [PATCH] Tweak CI config --- .github/workflows/test.yml | 83 ++++++++++---------------------------- 1 file changed, 22 insertions(+), 61 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7233209..25bdb98 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,66 +1,27 @@ -name: test - +name: CI on: - push: - branches: - - master - pull_request: - branches: - - master - + - push + - pull_request jobs: - linux: - runs-on: ubuntu-latest - + test: + name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [10.x, 12.x, 14.x] - + node-version: + - 14 + - 12 + - 10 + os: + - ubuntu-latest + - macos-latest + - windows-latest steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm test - env: - CI: true - - macos: - runs-on: macos-latest - - strategy: - matrix: - node-version: [10.x, 12.x, 14.x] - - steps: - - uses: actions/checkout@v2 - - name: Install dependencies - run: brew install automake - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm test - env: - CI: true - - windows: - runs-on: windows-latest - - strategy: - matrix: - node-version: [10.x, 12.x, 14.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm test - env: - CI: true + - uses: actions/checkout@v2 + - if: contains(matrix.os, 'macos') + run: brew install automake + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test