diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 554d6c8..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,6 +0,0 @@ -version: 2 -updates: - - package-ecosystem: 'npm' - directory: '/' - schedule: - interval: 'monthly' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a6923b..c7e39c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,8 +9,6 @@ on: branches: - main - dev - schedule: - - cron: '0 0 * * 1' jobs: build: @@ -25,6 +23,14 @@ jobs: with: node-version: '18' + - name: Cache node modules + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install dependencies run: npm install @@ -34,15 +40,13 @@ jobs: - name: Run Tests run: npm test - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 - with: - verbose: true - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - name: Build Project run: npm run build + clean_cache: + runs-on: ubuntu-latest + if: always() + + steps: - name: Clean npm cache run: npm cache clean --force