diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8acb8ba..df608a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,7 @@ jobs: runs-on: ${{ matrix.config.os }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup .NET @@ -72,7 +72,7 @@ jobs: needs: build steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Download artifacts @@ -94,7 +94,7 @@ jobs: needs: macos_codesign steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Download artifacts diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0743ea0..ba22ff8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: statuses: write steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Lint Code Base @@ -46,18 +46,20 @@ jobs: with: dotnet-version: '8.0.x' - name: Check out code into the project directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run unit tests run: make test - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: Build Linux Binary run: | # the binary will be used in E2E test python3 ./scripts/build.py v0.0.1 linux-x64 --enable-aot - name: Upload Linux artifact if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: linux-amd64-binary path: ./bin/artifacts/notation-azure-kv_0.0.1_linux_amd64.tar.gz @@ -68,7 +70,7 @@ jobs: python3 ./scripts/build.py v0.0.1 osx-x64 - name: Upload macOS artifact if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: darwin-amd64-binary path: ./bin/artifacts/notation-azure-kv_0.0.1_darwin_amd64.tar.gz @@ -79,7 +81,7 @@ jobs: needs: test steps: - name: Check out code into the project directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: actions/download-artifact@v3 with: name: linux-amd64-binary @@ -103,7 +105,7 @@ jobs: if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' steps: - name: Check out code into the project directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: actions/download-artifact@v3 with: name: linux-amd64-binary @@ -124,7 +126,7 @@ jobs: docker tag hello-world:latest localhost:5000/hello-world:v1 docker push localhost:5000/hello-world:v1 - name: Azure login - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ secrets.AZURE_CREDENTIALS }} - name: E2E testing @@ -139,7 +141,7 @@ jobs: if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' steps: - name: Check out code into the project directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET uses: actions/setup-dotnet@v4 with: @@ -165,7 +167,7 @@ jobs: docker push localhost:5000/hello-world:v1 shell: pwsh - name: Azure login - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ secrets.AZURE_CREDENTIALS }} - name: E2E testing @@ -180,7 +182,7 @@ jobs: if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' steps: - name: Check out code into the project directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: actions/download-artifact@v3 with: name: darwin-amd64-binary @@ -206,7 +208,7 @@ jobs: tar -zxf oras.tar.gz ./oras push localhost:5000/hello-world:v1 --artifact-type application/octet-stream ./LICENSE - name: Azure login - uses: azure/login@v1 + uses: azure/login@v2 with: creds: ${{ secrets.AZURE_CREDENTIALS }} - name: E2E testing