Skip to content

Commit

Permalink
Update scriptTests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 authored Feb 22, 2024
1 parent 46a11b1 commit f04a36c
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/scriptTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,26 @@ jobs:
- name: Test Build CLI - sh
run: |
sh build/build.sh
./jf${{ matrix.suite.osSuffix }} --version
if: contains( matrix.suite.os, 'windows')
./jf --version
if: ${{ matrix.suite.os != 'windows' }}

- name: Test Build CLI - bat
run: |
build/build.bat
./jf${{ matrix.suite.osSuffix }} --version
./jf.exe --version
if: contains( matrix.suite.os, 'windows')

- name: Check Certificate Expiration Date
- name: Check Certificate Expiration Date (Windows)
shell: pwsh
run: |
$signature = Get-AuthenticodeSignature -FilePath ./jf${{ matrix.suite.osSuffix }}
Write-Host "Certificate Expiration Date: $($signature.SignerCertificate.NotAfter)"
$signature = Get-AuthenticodeSignature -FilePath ./jf.exe
$expirationDate = $signature.SignerCertificate.NotAfter
Write-Host "Certificate Expiration Date: $expirationDate"
$oneMonthFromNow = (Get-Date).AddMonths(1)
if ($expirationDate -lt $oneMonthFromNow) {
Write-Host "The certificate will expire within a month."
exit 1
}
if: contains( matrix.suite.os, 'windows')

# Prior to the release, we set the new version in the package.json files, introducing the prereleased version.
Expand Down

0 comments on commit f04a36c

Please sign in to comment.