Merge pull request #976 from sevenrats/update-node-version-in-ci
Update ci ubuntu version and node version
This commit is contained in:
commit
f10f6e749d
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -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
|
||||||
|
|
4
.github/workflows/master-release.yml
vendored
4
.github/workflows/master-release.yml
vendored
|
@ -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
|
||||||
|
|
4
.github/workflows/unstable-release.yml
vendored
4
.github/workflows/unstable-release.yml
vendored
|
@ -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
|
||||||
|
|
4
.github/workflows/validate.yml
vendored
4
.github/workflows/validate.yml
vendored
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user