Skip to content

Commit

Permalink
[ODS-6530] Switch Ubuntu builds back to Ubuntu latest (24.04) (#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaksn authored Nov 11, 2024
1 parent f49da47 commit 35d01c4
Show file tree
Hide file tree
Showing 26 changed files with 42 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Cleanup Caches by a branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:

jobs:
cleanup:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Check for Repo Dispatch Token
if: ${{ env.REPOSITORY_OWNER == 'Ed-Fi-Alliance-OSS' && env.GH_TOKEN == '' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CodeQL Security Scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
analyze:
if: ${{ always() }}
needs: FindStandardAndExtensionVersions
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Dependencies Security Scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

analyze-code:
name: Analyze Code Dependencies
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Find Standard and Extension Versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ env:

jobs:
FindStandardAndExtensionVersions:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
StandardVersions: ${{ steps.Set_StandardVersions.outputs.StandardVersions }}
ExtensionVersions: ${{ steps.Set_ExtensionVersions.outputs.ExtensionVersions }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Lib edFi.admin.dataaccess.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
jobs:
build:

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Check for Azure token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Lib edFi.common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
jobs:
build:

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Check for Azure token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Lib edFi.loadtools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
jobs:
build:

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Check for Azure token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Lib edFi.ods.api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
jobs:
build:

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Check for Azure token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Lib edFi.ods.common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
jobs:
build:

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Check for Azure token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Lib edFi.ods.standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
calling_branch: ${{ github.head_ref || github.ref_name }}
build:
needs: FindStandardAndExtensionVersions
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
StandardVersion: ${{ fromJson(needs.FindStandardAndExtensionVersions.outputs.StandardVersions) }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Lib edFi.security.dataaccess.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
jobs:
build:

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Check for Azure token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Pkg EdFi.Ods.CodeGen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ env:
jobs:
build:

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: echo distinct ID ${{ github.event.inputs.distinct_id }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
build:
if: ${{ always() }}
needs: FindStandardAndExtensionVersions
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
StandardVersion: ${{ fromJson(needs.FindStandardAndExtensionVersions.outputs.StandardVersions) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
build:
if: ${{ always() }}
needs: FindStandardAndExtensionVersions
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
StandardVersion: ${{ fromJson(needs.FindStandardAndExtensionVersions.outputs.StandardVersions) }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Pkg EdFi.Ods.Minimal.Template.TPDM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
--health-retries 3
--name mssql
--user root
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
StandardVersion: ${{ fromJson(needs.FindStandardAndExtensionVersions.outputs.StandardVersions) }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Pkg EdFi.Ods.Minimal.Template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
calling_branch: ${{ github.head_ref || github.ref_name }}

build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
if: ${{ always() }}
needs: FindStandardAndExtensionVersions
services:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
build:
if: ${{ always() }}
needs: FindStandardAndExtensionVersions
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
StandardVersion: ${{ fromJson(needs.FindStandardAndExtensionVersions.outputs.StandardVersions) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
build:
if: ${{ always() }}
needs: FindStandardAndExtensionVersions
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
StandardVersion: ${{ fromJson(needs.FindStandardAndExtensionVersions.outputs.StandardVersions) }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Pkg EdFi.Ods.Populated.Template.TPDM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
--health-retries 3
--name mssql
--user root
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
StandardVersion: ${{ fromJson(needs.FindStandardAndExtensionVersions.outputs.StandardVersions) }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Pkg EdFi.Ods.Populated.Template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
build:
if: ${{ always() }}
needs: FindStandardAndExtensionVersions
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
services:
mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Scorecard supply-chain security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions: read-all

jobs:
Security-Vulnerability-Check-Each-Release-Tag:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
jobs:
build:

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Check for Repo Dispatch Token
Expand Down
4 changes: 2 additions & 2 deletions Utilities/SdkGen/EdFi.SdkGen.Console/EdFi.OdsApi.Sdk.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<id>EdFi.OdsApi.Sdk</id>
<version>$version$</version>
<title>EdFi.OdsApi.Sdk</title>
<authors>$authors$</authors>
<owners>$owners$</owners>
<authors>Ed-Fi Alliance</authors>
<owners>Ed-Fi Alliance</owners>
<projectUrl>https://github.com/Ed-Fi-Alliance-OSS/Ed-Fi-ODS</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A pregenerated sdk for use with the Ed-Fi Ods Api.</description>
Expand Down
12 changes: 11 additions & 1 deletion build.githubactions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,17 @@ function Pack {
}
}
if ($NuspecFilePath -Like "*.nuspec" -and $null -ne $PackageName){
nuget pack $NuspecFilePath -OutputDirectory $packageOutput -Version $version -Properties configuration=$Configuration -Properties id=$PackageName -NoPackageAnalysis -NoDefaultExcludes
$params = @{
PackageDefinitionFile = $NuspecFilePath
Version = $version
PackageId = $PackageName
OutputDirectory = $packageOutput
BuildConfiguration = $Configuration
}

& "$PSScriptRoot/../Ed-Fi-ODS-Implementation/Initialize-PowershellForDevelopment.ps1"

New-Package @params | Out-Host
}
if ([string]::IsNullOrWhiteSpace($NuspecFilePath) -and $null -ne $PackageName){
Invoke-Execute {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public EducationOrganizationTestDataBuilder AddStaffEducationOrganizationEmploym
{schoolId},
{staffUSI},
{TestEmploymentStatusDescriptorId},
'{ entryDate }');"
'{ entryDate?.Date.ToShortDateString() }');"

);

Expand All @@ -105,7 +105,7 @@ public EducationOrganizationTestDataBuilder AddStaffEducationOrganizationAssignm
{schoolId},
{staffUSI},
{TestStaffClassificationDescriptorId},
'{ entryDate }');"
'{ entryDate?.Date.ToShortDateString() }');"
);

return this;
Expand All @@ -122,7 +122,7 @@ public EducationOrganizationTestDataBuilder AddStaff(string newGuidId)
VALUES (
'{newGuidId}',
'{newGuidId}',
'{ DateTime.Now }',
'{ DateTime.UtcNow.Date.ToShortDateString() }',
'{newGuidId}');"
);
return this;
Expand Down Expand Up @@ -245,7 +245,7 @@ public EducationOrganizationTestDataBuilder AddStudent(string newGuidId)
VALUES (
'{newGuidId}',
'{newGuidId}',
'{DateTime.UtcNow.Date}',
'{DateTime.UtcNow.Date.ToShortDateString()}',
'{newGuidId}');"
);

Expand All @@ -268,7 +268,7 @@ public EducationOrganizationTestDataBuilder AddStudentSchoolAssociation(long sch
VALUES (
{schoolId},
{studentUSI},
'{entryDate}',
'{entryDate?.Date.ToShortDateString()}',
{TestGradeLevelDescriptorId});"
);

Expand All @@ -289,7 +289,7 @@ public EducationOrganizationTestDataBuilder AddStudentEducationOrganizationRespo
StudentUSI,
ResponsibilityDescriptorId)
VALUES (
'{entryDate}',
'{entryDate?.Date.ToShortDateString()}',
{schoolId},
{studentUSI},
{TestResponsibilityDescriptorId});"
Expand Down

0 comments on commit 35d01c4

Please sign in to comment.