From 2ac8a36654271a8106158f340e922b9b95e3079c Mon Sep 17 00:00:00 2001 From: Technote Date: Sun, 15 Sep 2019 00:37:52 +0900 Subject: [PATCH 1/2] feat: matrix build (#28) --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b2ccec8..611c3b00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,10 +12,17 @@ jobs: jest: name: Jest runs-on: ubuntu-latest + strategy: + matrix: + node_version: [10, 11, 12] steps: - uses: actions/checkout@v1 with: fetch-depth: 3 + - name: Use Node.js ${{ matrix.node_version }} + uses: actions/setup-node@v1 + with: + version: ${{ matrix.node_version }} - name: Install Package dependencies run: yarn install - name: Run tests From a34b319f2828a98e982bbb4e7d72e372142f3b84 Mon Sep 17 00:00:00 2001 From: Technote Date: Sun, 15 Sep 2019 00:51:54 +0900 Subject: [PATCH 2/2] Update ci.yml --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 611c3b00..f31611c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,15 +14,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [10, 11, 12] + node: ['8', '10', '11', '12'] steps: - uses: actions/checkout@v1 with: fetch-depth: 3 - - name: Use Node.js ${{ matrix.node_version }} + - name: Setup node uses: actions/setup-node@v1 with: - version: ${{ matrix.node_version }} + node-version: ${{ matrix.node }} - name: Install Package dependencies run: yarn install - name: Run tests