Merge pull request #976 from sevenrats/update-node-version-in-ci

Update ci ubuntu version and node version
This commit is contained in:
1hitsong 2023-01-26 17:58:58 -05:00 committed by GitHub
commit f10f6e749d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 12 deletions

View File

@ -6,12 +6,12 @@ on:
- 'locale/**' - 'locale/**'
jobs: jobs:
run: run:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3 - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with: with:
node-version: "14.12.0" node-version: "18.13.0"
- run: npm ci - run: npm ci
- run: npx ropm install - run: npx ropm install
- run: make dev - run: make dev

View File

@ -6,12 +6,12 @@ on:
jobs: jobs:
test-build-release: test-build-release:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- uses: actions/setup-node@master - uses: actions/setup-node@master
with: with:
node-version: "14.12.0" node-version: "18.13.0"
- run: npm ci - run: npm ci
- run: npx ropm install - run: npx ropm install
- run: npm run validate - run: npm run validate

View File

@ -6,12 +6,12 @@ on:
jobs: jobs:
test-build-release: test-build-release:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- uses: actions/setup-node@master - uses: actions/setup-node@master
with: with:
node-version: "14.12.0" node-version: "18.13.0"
- run: npm ci - run: npm ci
- run: npx ropm install - run: npx ropm install
- run: npm run validate - run: npm run validate

View File

@ -3,12 +3,12 @@ on: [push, pull_request]
jobs: jobs:
run: run:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- uses: actions/setup-node@master - uses: actions/setup-node@master
with: with:
node-version: "14.12.0" node-version: "18.13.0"
- run: npm ci - run: npm ci
- run: npx ropm install - run: npx ropm install
- run: npm run validate - run: npm run validate

View File

@ -243,8 +243,8 @@ function getRelativeDayName(date) as string
end if end if
' Check for Yesterday ' Check for Yesterday
todayMidnight = now.AsSeconds() - (now.AsSeconds() MOD 86400) todayMidnight = now.AsSeconds() - (now.AsSeconds() mod 86400)
dateMidnight = date.AsSeconds() - (date.AsSeconds() MOD 86400) dateMidnight = date.AsSeconds() - (date.AsSeconds() mod 86400)
if todayMidnight - dateMidnight = 86400 if todayMidnight - dateMidnight = 86400
return "yesterday" return "yesterday"
@ -266,8 +266,8 @@ function getDurationStringFromSeconds(seconds) as string
minutes = seconds / 60.0 minutes = seconds / 60.0
if minutes > 60 if minutes > 60
hours = (minutes - (minutes MOD 60)) / 60 hours = (minutes - (minutes mod 60)) / 60
minutes = minutes MOD 60 minutes = minutes mod 60
end if end if
if hours > 0 if hours > 0