From e33a53bc3bf7a587af6a9fb01b6f3996f294dc19 Mon Sep 17 00:00:00 2001 From: Kei Kamikawa Date: Thu, 1 Sep 2022 10:52:53 +0900 Subject: [PATCH] fixed actions to use the latest version setup action --- .github/workflows/ci.yml | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83a41a9f..96767fa0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,18 +8,12 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: 17 - - name: Cache Yarn - uses: actions/cache@v2 - with: - path: '**/node_modules' - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + node-version: current + cache: 'yarn' - run: yarn install --frozen-lockfile - run: yarn test env: @@ -27,18 +21,12 @@ jobs: eslint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Node - uses: actions/setup-node@v2 - with: - node-version: 17 - - name: Cache Yarn - uses: actions/cache@v2 + uses: actions/setup-node@v3 with: - path: '**/node_modules' - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + node-version: current + cache: 'yarn' - run: yarn install --frozen-lockfile - run: yarn lint-fix - run: yarn prettier