From a44c62471f860d81cbcb9bc31b385b8d9abbc117 Mon Sep 17 00:00:00 2001 From: Alie Date: Sat, 6 Jan 2024 14:09:51 +0100 Subject: [PATCH] npm cache with action --- .gitea/workflows/test.yaml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 57fa60f..f7b6a6f 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -14,14 +14,9 @@ jobs: run: apk add npm git curl bash - name: Check out repository code uses: actions/checkout@v3 - - name: Cache NPM dependencies - uses: actions/cache@v1 - with: - path: ~/.npm - key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.OS }}-npm-cache- - name: Install project dependencies - run: npm install + uses: actions/setup-node@v4 + with: + cache: 'npm' - name: Run docker-compose run: docker compose down -v && docker compose run bot-api bun test \ No newline at end of file