diff --git a/.github/workflows/build-binary-artifacts.yml b/.github/workflows/build-binary-artifacts.yml index 3b5a1c0..1249cb3 100644 --- a/.github/workflows/build-binary-artifacts.yml +++ b/.github/workflows/build-binary-artifacts.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main fetch-depth: 0 @@ -65,7 +65,7 @@ jobs: fi - name: Upload Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: binary-artifacts diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index be37743..60a2659 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Important to fetch all history for accurate blame information - name: Analyze Watcher with SonarCloud diff --git a/.github/workflows/unit-testing.yml b/.github/workflows/unit-testing.yml index c2cbb21..b4146b1 100644 --- a/.github/workflows/unit-testing.yml +++ b/.github/workflows/unit-testing.yml @@ -8,6 +8,7 @@ on: - "lib/**" - "index.js" - "test/**" + - ".github/workflows/unit-testing.yml" pull_request: branches: - main @@ -15,17 +16,17 @@ on: - "lib/**" - "index.js" - "test/**" - + - ".github/workflows/unit-testing.yml" jobs: build_test: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: "20.x" - name: Install app dependencies run: npm ci - name: Create .env file @@ -33,7 +34,7 @@ jobs: - name: Run tests run: npm test - name: Upload coverage to github - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ always() }} with: name: coverage