From 1ec9e1b1770d80c530125a1cfa97b59012c055f5 Mon Sep 17 00:00:00 2001 From: Aiji Uejima Date: Fri, 16 Dec 2022 20:54:57 +0900 Subject: [PATCH] chore: update git actions --- .github/workflows/ci.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 996ccb4..d743da5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,22 +12,24 @@ jobs: Test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16.x registry-url: https://registry.npmjs.org - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: - path: '**/node_modules' - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + path: | + **/node_modules + .yarn/cache + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - name: Install dependencies ๐Ÿ’ฟ run: yarn install --immutable - name: Run Tests ๐Ÿงช run: yarn coverage - name: Report coverage ๐Ÿ“ - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} working-directory: ./packages/core @@ -39,16 +41,18 @@ jobs: - Test if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16.x registry-url: https://registry.npmjs.org - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: - path: "**/node_modules" - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + path: | + **/node_modules + .yarn/cache + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - name: Install dependencies ๐Ÿ’ฟ run: yarn install --immutable - name: Publish ๐Ÿš€