From f66bb0727f22df7ac05ad0ced0b3a2c6b10bdfd6 Mon Sep 17 00:00:00 2001 From: Charlie Brown Date: Mon, 4 Nov 2024 09:00:42 -0600 Subject: [PATCH 1/2] Update CI workflows with latest action versions --- .github/workflows/ci.yml | 54 +++++++++-------------------------- .github/workflows/release.yml | 5 ++-- .github/workflows/size.yml | 2 +- 3 files changed, 18 insertions(+), 43 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b86a51c6..641f3caa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,65 +23,39 @@ jobs: check_and_build: name: Check and build codebase runs-on: ubuntu-latest - strategy: - matrix: - node-version: [12.x, 14.x, 16.x] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + cache: 'yarn' + node-version: [18.x] - - name: Get Yarn Cache Directory Path - id: cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: Use Yarn Cache - uses: actions/cache@v2 - id: cache - with: - path: ${{ steps.cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }} - - - name: Installation ${{ matrix.node-version }} + - name: Installation run: yarn --prefer-offline --frozen-lockfile --non-interactive - - name: Check Code ${{ matrix.node-version }} + - name: Check Code run: yarn check:ci - - name: Build Core ${{ matrix.node-version }} + - name: Build Core run: yarn build - - name: Check size ${{ matrix.node-version }} + - name: Check size run: yarn size code_coverage: name: Check code coverage runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - - name: Get Yarn Cache Directory Path - id: cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: Use Yarn Cache - uses: actions/cache@v2 - id: cache + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - path: ${{ steps.cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }} + cache: 'yarn' + node-version: [18.x] - - name: Installation ${{ matrix.node-version }} + - name: Installation run: yarn --prefer-offline --frozen-lockfile --non-interactive - - name: Build Code Coverage ${{ matrix.node-version }} + - name: Build Code Coverage run: yarn test:cover - name: Coveralls diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7d6846da..45e5b85d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,12 +16,13 @@ jobs: packages: write pull-requests: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: token: ${{ secrets.CHANGESETS_TOKEN }} - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: + cache: 'yarn' node-version: 18 - name: Install dependencies diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index 6021cda3..ab3d1bef 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -6,7 +6,7 @@ jobs: env: CI_JOB_NUMBER: 1 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - uses: andresz1/size-limit-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} From 654e42a2e6858495353b4a576ad160f6229e43d0 Mon Sep 17 00:00:00 2001 From: Charlie Brown Date: Mon, 4 Nov 2024 09:03:14 -0600 Subject: [PATCH 2/2] Fix version specifier --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 641f3caa..3a9dbba1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: 'yarn' - node-version: [18.x] + node-version: 18 - name: Installation run: yarn --prefer-offline --frozen-lockfile --non-interactive @@ -50,7 +50,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: 'yarn' - node-version: [18.x] + node-version: 18 - name: Installation run: yarn --prefer-offline --frozen-lockfile --non-interactive