Skip to content

Commit

Permalink
Update the used Ubuntu version to 22.04 in the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Mar 23, 2023
1 parent 68b2632 commit 6c4bce9
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 26 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: Audit

on:
Expand All @@ -7,7 +6,7 @@ on:

jobs:
audit:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Audit
timeout-minutes: 15

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
auto-merge:
name: Auto reviews updates
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 5

steps:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/clean-ghpages.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
name: Clean GitHub pages

on: delete

jobs:
clean:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
name: Clean GitHub pages
timeout-minutes: 5
concurrency: gh-pages-push
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: CodeQL scanning

on:
Expand All @@ -10,7 +9,7 @@ env:
jobs:
codeql:
name: CodeQL scanning
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 15

steps:
Expand All @@ -22,8 +21,8 @@ jobs:
uses: github/codeql-action/init@v2
if: env.HAS_SECRETS == 'HAS_SECRETS'

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
if: env.HAS_SECRETS == 'HAS_SECRETS'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delete-old-workflows-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 25
name: Delete old workflow runs

Expand Down
31 changes: 18 additions & 13 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ env:

jobs:
not-failed-backport:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Test that's not a failed backport
timeout-minutes: 5
steps:
- run: 'false'
if: github.event.head_commit.message == '[skip ci] Add instructions to finish the backport.'

main:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Continuous integration
timeout-minutes: 50
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')"
Expand Down Expand Up @@ -90,13 +90,15 @@ jobs:
sudo apt install g++-10 libgbm1 graphicsmagick fonts-liberation2 gettext
- run: buildtools/set-version
- run: make .build/node_modules.timestamp
- run:
make .build/node_modules.timestamp

# Lint
# Lint
- run: npx tsc --version
- run: npm run typecheck
if: github.event_name != 'pull_request_target'
# First do the lint on TypeScript files to see the error in the many warnings messages
if:
github.event_name != 'pull_request_target'
# First do the lint on TypeScript files to see the error in the many warnings messages
- run: make .build/eslint-ts.timestamp
if: github.event_name != 'pull_request_target'
- run: make lint
Expand All @@ -106,15 +108,17 @@ jobs:
NODE_OPTIONS: --openssl-legacy-provider
if: github.event_name != 'pull_request_target'
- run: make check-examples-checker
if: github.event_name != 'pull_request_target'
# Cypress tests
if:
github.event_name != 'pull_request_target'
# Cypress tests
- run: make serve-gmf-apps &
if: github.event_name != 'pull_request_target'
- run: npm run test-cli
env:
NODE_OPTIONS: --openssl-legacy-provider
if: github.event_name != 'pull_request_target'
# Webpack build of ngeo/gmf examples and gmf apps
if:
github.event_name != 'pull_request_target'
# Webpack build of ngeo/gmf examples and gmf apps
- run: make examples-hosted
env:
NODE_ENV: production
Expand Down Expand Up @@ -151,9 +155,10 @@ jobs:
path: .build/examples-hosted
if-no-files-found: ignore
retention-days: 5
if: always()
if:
always()

# Generate API doc, api, lib
# Generate API doc, api, lib
- run: npm run doc -- srcapi/store/config.ts --json dist/typedoc.json
- run: npm run doc
- run: npm run build-api
Expand Down Expand Up @@ -219,7 +224,7 @@ jobs:
if: env.HAS_SECRETS == 'HAS_SECRETS'

gh-pages:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Github Pages
timeout-minutes: 10
concurrency: gh-pages-push
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
build:
name: Pull request check
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 5

steps:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test_url.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: Add message on pull requests with the related examples

on:
Expand All @@ -9,7 +8,7 @@ on:
jobs:
all:
name: Add message on pull requests with the related examples
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 2

steps:
Expand Down

0 comments on commit 6c4bce9

Please sign in to comment.