diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index db930ce..e5e56fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,22 +23,26 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 20.x + - name: Get yarn cache id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-yarn- - + ${{ runner.os }}-node-modules- - name: Install yarn dependencies run: yarn install --froze-lockfile @@ -54,8 +58,6 @@ jobs: - name: Run jest run: yarn test - # - name: Setup db - - name: Login to Docker Hub run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --pasword-stdin @@ -63,8 +65,3 @@ jobs: run: make docker-build-chat-bot - name: Push docker image for codebattle bot run: make docker-push-chat-bot - - # - name: - # run: - # uses: - # with: diff --git a/package.json b/package.json index 81e8a3c..06962fd 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,9 @@ "prepare": "husky", "test": "jest" }, + "jest": { + "verbose": true + }, "repository": "git@github.com:hexlet-codebattle/codebattle_bot", "author": "ReDBrother ", "license": "MIT",