From ef8703fbbdde5f3517be1a1336a60a9eaa15978b Mon Sep 17 00:00:00 2001 From: tigercosmos Date: Sun, 10 Mar 2024 18:32:27 +0900 Subject: [PATCH] update CI --- .github/workflows/test.yml | 42 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6b4530b..e39ee03 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,12 +6,50 @@ on: - master jobs: - test: + test-ubuntu: runs-on: ubuntu-latest strategy: matrix: - node-version: [16, 18, 20] + node-version: [20, 21] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Run tests + run: npm test + + test-macos: + runs-on: macos-latest + + strategy: + matrix: + node-version: [20, 21] + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Run tests + run: npm test + + test-windows: + runs-on: windows-latest + + strategy: + matrix: + node-version: [20, 21] steps: - name: Checkout repository