Skip to content

Commit

Permalink
RavenDB-22901 Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenshadow21 authored and grisha-kotler committed Sep 16, 2024
1 parent 5bcd871 commit 5e77e5a
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 37 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/FastTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
os: [ ubuntu-latest, windows-latest, macos-latest ]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

Expand All @@ -45,10 +45,10 @@ jobs:
os: [ ubuntu-latest, windows-latest, macos-latest ]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/FastTestsARM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
os: [ [self-hosted, Linux], [self-hosted, macOS]]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

Expand All @@ -41,10 +41,10 @@ jobs:
os: [ [self-hosted, Linux], [self-hosted, macOS]]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/StudioTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

Expand All @@ -34,4 +34,4 @@ jobs:
dotnet build -c Release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
20 changes: 10 additions & 10 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:
name: Compile Server & Studio
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Grep .Net version
run: |
dotnet_version=$(grep '<TargetFramework>' < src/Raven.Server/Raven.Server.csproj | tr -cd [:digit:].)
echo "DOTNET_VERSION=${dotnet_version}.x" >> $GITHUB_ENV
- name: Install 3.1 sdk
if: startsWith( env.DOTNET_VERSION, '3' )
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 3.1.x
- name: Setup .NET 8
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore
Expand All @@ -38,13 +38,13 @@ jobs:

- name: Upload artifact status_server
if: always()
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: pass_status_server
path: status_server.txt

- name: Setup nodejs
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
- name: Restore
Expand All @@ -60,7 +60,7 @@ jobs:
working-directory: src/Raven.Studio

- name: Upload artifact status_studio
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: pass_status_studio
path: src/Raven.Studio/status_studio.txt
Expand All @@ -72,15 +72,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Download artifacts 1
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: pass_status_server

- name: Download artifacts 2
if: needs.job1.result == 'success'
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: pass_status_studio

Expand All @@ -93,7 +93,7 @@ jobs:
PRTITLE: ${{ github.event.pull_request.title }}

- name: Upload artifact slack_message
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: notification
path: notificationMessage.txt
16 changes: 8 additions & 8 deletions .github/workflows/conventions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: CLA Signed
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: CLA Signed test
env:
CLA_SIGNED_URL: http://api.web.ravendb.net/api/v1/contributors/cla/signed?pullRequestId=
Expand All @@ -30,13 +30,13 @@ jobs:
ghprNumber: ${{ github.event.pull_request.number }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Commit Message Conventions
run: ./scripts/githubActions/commitMessageConventions.ps1

- name: Upload artifact status_message
if: always()
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: pass_status_message
path: status_message.txt
Expand All @@ -47,7 +47,7 @@ jobs:

- name: Upload artifact status_whitespace
if: always()
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: pass_status_whitespace
path: status_whitespace.txt
Expand All @@ -59,14 +59,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Download artifacts 1
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: pass_status_message

- name: Download artifacts 2
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: pass_status_whitespace

Expand All @@ -79,7 +79,7 @@ jobs:
PRTITLE: ${{ github.event.pull_request.title }}

- name: Upload artifact slack_message
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: notification
path: notificationMessage.txt
2 changes: 1 addition & 1 deletion .github/workflows/slackNotify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: 'Download artifact'
uses: actions/github-script@v5
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/studioConventions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Grep .Net version
run: |
dotnet_version=$(grep '<TargetFramework>' < src/Raven.Server/Raven.Server.csproj | tr -cd [:digit:].)
echo "DOTNET_VERSION=${dotnet_version}" >> $GITHUB_ENV
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: '${{ env.DOTNET_VERSION }}'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/studioLabel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
src:
- '!src/Raven.Studio/**/*'
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: steps.changes.outputs.src != 'true'

- name: Set Label
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/versionLabel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Label
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Parse Label
run: |
$label="${{ github.event.pull_request.base.ref }}".split("/")[-1]
Expand Down

0 comments on commit 5e77e5a

Please sign in to comment.