diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 861bed4..f26c909 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,34 +18,22 @@ jobs: steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v2 - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + cache: 'npm' - name: Install dependencies - run: | - yarn --ignore-engines --frozen-lockfile --ignore-scripts + run: npm ci - name: Build - run: yarn build + run: npm run build - name: Lint code - run: yarn lint + run: npm run lint - name: Test code - run: yarn test + run: npm run test - name: Report coverage uses: coverallsapp/github-action@v1