From 4f9aee3f1a26d51b51789a8370b836cac1631dac Mon Sep 17 00:00:00 2001 From: Alain Olivier Date: Thu, 4 Apr 2024 15:35:24 +0200 Subject: [PATCH 1/2] ci(run-test.yml): add check for changesets --- .github/workflows/run-test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index ca0b0add..47fed29c 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -16,6 +16,8 @@ jobs: steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: @@ -24,5 +26,9 @@ jobs: cache-dependency-path: ./package-lock.json - run: npm ci + - name: Check changesets + if: github.base_ref == 'develop' + run: npx changeset status --since=origin/develop + - name: Run tests run: CI=true npm test From aa0a96e408d276f0ec3b1d3c94f0121abefc9011 Mon Sep 17 00:00:00 2001 From: Alain Olivier Date: Thu, 4 Apr 2024 15:57:11 +0200 Subject: [PATCH 2/2] ci(run-test.yml): update actions/checkout and actions/setup-node --- .github/workflows/run-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index 47fed29c..651849fa 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -15,11 +15,11 @@ jobs: node-version: [18.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm'