Skip to content

Commit

Permalink
bump(ci): update ci actions
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao committed Apr 8, 2024
1 parent 8f95641 commit 947ded6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 947ded6

Please sign in to comment.