From 7d97791c2ca80dff2d4121a3104066286357ef75 Mon Sep 17 00:00:00 2001 From: Hanakla <8597982+hanakla@users.noreply.github.com> Date: Sat, 11 Nov 2023 15:06:19 +0900 Subject: [PATCH] ci --- .github/workflows/ci.yml | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8599950..207db16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,26 @@ name: CI on: [push] jobs: + setup-and-build: + strategy: + matrix: + node-version: [20.x] + os: [ubuntu-latest] + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: ./.github/actions/setup + with: + node-version: ${{ matrix.node-version }} + os: ${{ matrix.os }} + + - uses: ./.github/actions/building + testing: + needs: setup-and-build strategy: matrix: os: [ubuntu-latest] @@ -35,6 +54,7 @@ jobs: yarn test bundle-size: + needs: setup-and-build strategy: matrix: os: [ubuntu-latest] @@ -57,20 +77,3 @@ jobs: pattern: './pkgs/core/dist/*.{js,mjs}' exclude: './pkgs/core/dist/*-*.{js,mjs}' - build: - strategy: - matrix: - node-version: [20.x] - os: [ubuntu-latest] - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - uses: ./.github/actions/setup - with: - node-version: ${{ matrix.node-version }} - os: ${{ matrix.os }} - - - uses: ./.github/actions/building