Skip to content

Commit 2eea5d7

Browse files
authored
ci: drop ubuntu-18.04, add 22.04, latest (#776)
1 parent 765cf11 commit 2eea5d7

11 files changed

+49
-29
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
CodeQL-Build:
11-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-22.04
1212
steps:
1313
- uses: actions/checkout@v3
1414

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
dependency-review:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-22.04
1414
steps:
1515
- uses: actions/checkout@v3
1616
- uses: actions/dependency-review-action@v2

.github/workflows/dev-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525

2626
jobs:
2727
dev-image-test:
28-
runs-on: ubuntu-20.04
28+
runs-on: ubuntu-22.04
2929
steps:
3030
- uses: actions/checkout@v3
3131
- name: Login to Packages

.github/workflows/label-commenter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717

1818
jobs:
1919
comment:
20-
runs-on: ubuntu-20.04
20+
runs-on: ubuntu-22.04
2121
steps:
2222
- uses: actions/checkout@v3
2323

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
triage:
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-22.04
1010
steps:
1111
- uses: actions/labeler@v4
1212
with:

.github/workflows/pages-status-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: page_build
44

55
jobs:
66
pages-status-check:
7-
runs-on: ubuntu-18.04
7+
runs-on: ubuntu-22.04
88
steps:
99
- name: check status
1010
run: |

.github/workflows/purge-readme-image-cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
purge:
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-22.04
1111
steps:
1212

1313
- run: >

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
release:
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-22.04
1111
steps:
1212
- uses: actions/checkout@v3
1313
# https://github.com/peaceiris/workflows/blob/main/create-release-npm/action.yml

.github/workflows/test.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ jobs:
1919
strategy:
2020
matrix:
2121
os:
22+
- 'ubuntu-22.04'
2223
- 'ubuntu-20.04'
23-
- 'ubuntu-18.04'
24+
- 'ubuntu-latest'
2425
- 'macos-latest'
2526
- 'windows-latest'
2627
permissions:
@@ -51,7 +52,7 @@ jobs:
5152
- run: npm ci --ignore-scripts
5253

5354
- name: npm audit
54-
if: startsWith(matrix.os, 'ubuntu-18.04')
55+
if: startsWith(matrix.os, 'ubuntu-22.04')
5556
run: |
5657
npm audit > ./audit.log || true
5758
if ! [ "$(cat ./audit.log | wc -l)" = 1 ]; then
@@ -60,11 +61,11 @@ jobs:
6061
rm ./audit.log
6162
6263
- name: Run prettier
63-
if: startsWith(matrix.os, 'ubuntu-18.04')
64+
if: startsWith(matrix.os, 'ubuntu-22.04')
6465
run: npm run format:check
6566

6667
- name: Run eslint
67-
if: startsWith(matrix.os, 'ubuntu-18.04')
68+
if: startsWith(matrix.os, 'ubuntu-22.04')
6869
run: npm run lint
6970

7071
- run: npm test
@@ -99,7 +100,7 @@ jobs:
99100

100101
- name: Deploy
101102
if: |
102-
startsWith(matrix.os, 'ubuntu-18.04') &&
103+
startsWith(matrix.os, 'ubuntu-latest') &&
103104
github.ref == 'refs/heads/main' && github.event.repository.fork == false
104105
uses: ./
105106
with:
@@ -171,3 +172,21 @@ jobs:
171172
user_name: 'github-actions[bot]'
172173
user_email: 'github-actions[bot]@users.noreply.github.com'
173174
# commit_message: ${{ github.event.head_commit.message }}
175+
176+
- name: Deploy
177+
if: |
178+
startsWith(matrix.os, 'ubuntu-22.04') &&
179+
github.ref == 'refs/heads/main' && github.event.repository.fork == false
180+
uses: ./
181+
with:
182+
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
183+
github_token: ${{ secrets.GITHUB_TOKEN }}
184+
publish_branch: gh-pages-ubuntu-22.04
185+
publish_dir: ./test_projects/mdbook/book
186+
# external_repository: ''
187+
allow_empty_commit: true
188+
# keep_files: true
189+
# force_orphan: true
190+
user_name: 'github-actions[bot]'
191+
user_email: 'github-actions[bot]@users.noreply.github.com'
192+
# commit_message: ${{ github.event.head_commit.message }}

.github/workflows/update-major-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
update:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-22.04
1010
timeout-minutes: 1
1111
steps:
1212
- uses: actions/checkout@v3

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ All Actions runners: Linux (Ubuntu), macOS, and Windows are supported.
6565

6666
| runs-on | `github_token` | `deploy_key` | `personal_token` |
6767
|---|:---:|:---:|:---:|
68+
| ubuntu-22.04 | ✅️ | ✅️ | ✅️ |
6869
| ubuntu-20.04 | ✅️ | ✅️ | ✅️ |
69-
| ubuntu-18.04 | ✅️ | ✅️ | ✅️ |
70+
| ubuntu-latest | ✅️ | ✅️ | ✅️ |
7071
| macos-latest | ✅️ | ✅️ | ✅️ |
7172
| windows-latest | ✅️ | (2) | ✅️ |
7273

@@ -149,7 +150,7 @@ on:
149150
150151
jobs:
151152
deploy:
152-
runs-on: ubuntu-20.04
153+
runs-on: ubuntu-22.04
153154
permissions:
154155
contents: write
155156
concurrency:
@@ -170,8 +171,8 @@ jobs:
170171
171172
- name: Deploy
172173
uses: peaceiris/actions-gh-pages@v3
173-
# If you're changing the branch from main,
174-
# also change the `main` in `refs/heads/main`
174+
# If you're changing the branch from main,
175+
# also change the `main` in `refs/heads/main`
175176
# below accordingly.
176177
if: ${{ github.ref == 'refs/heads/main' }}
177178
with:
@@ -489,7 +490,7 @@ on:
489490
490491
jobs:
491492
deploy:
492-
runs-on: ubuntu-20.04
493+
runs-on: ubuntu-22.04
493494
permissions:
494495
contents: write
495496
concurrency:
@@ -641,7 +642,7 @@ on:
641642
642643
jobs:
643644
deploy:
644-
runs-on: ubuntu-20.04
645+
runs-on: ubuntu-22.04
645646
permissions:
646647
contents: write
647648
concurrency:
@@ -683,7 +684,7 @@ on:
683684
684685
jobs:
685686
deploy:
686-
runs-on: ubuntu-20.04
687+
runs-on: ubuntu-22.04
687688
permissions:
688689
contents: write
689690
concurrency:
@@ -733,7 +734,7 @@ on:
733734
734735
jobs:
735736
deploy:
736-
runs-on: ubuntu-20.04
737+
runs-on: ubuntu-22.04
737738
permissions:
738739
contents: write
739740
concurrency:
@@ -785,7 +786,7 @@ on:
785786
786787
jobs:
787788
deploy:
788-
runs-on: ubuntu-20.04
789+
runs-on: ubuntu-22.04
789790
permissions:
790791
contents: write
791792
concurrency:
@@ -842,7 +843,7 @@ on:
842843
843844
jobs:
844845
deploy:
845-
runs-on: ubuntu-20.04
846+
runs-on: ubuntu-22.04
846847
permissions:
847848
contents: write
848849
concurrency:
@@ -897,7 +898,7 @@ on:
897898
898899
jobs:
899900
deploy:
900-
runs-on: ubuntu-20.04
901+
runs-on: ubuntu-22.04
901902
permissions:
902903
contents: write
903904
concurrency:
@@ -957,7 +958,7 @@ on:
957958
958959
jobs:
959960
deploy:
960-
runs-on: ubuntu-20.04
961+
runs-on: ubuntu-22.04
961962
permissions:
962963
contents: write
963964
concurrency:
@@ -1019,7 +1020,7 @@ on:
10191020
10201021
jobs:
10211022
deploy:
1022-
runs-on: ubuntu-20.04
1023+
runs-on: ubuntu-22.04
10231024
permissions:
10241025
contents: write
10251026
concurrency:
@@ -1064,7 +1065,7 @@ on:
10641065
10651066
jobs:
10661067
deploy:
1067-
runs-on: ubuntu-20.04
1068+
runs-on: ubuntu-22.04
10681069
permissions:
10691070
contents: write
10701071
concurrency:
@@ -1110,7 +1111,7 @@ on:
11101111
11111112
jobs:
11121113
deploy:
1113-
runs-on: ubuntu-20.04
1114+
runs-on: ubuntu-22.04
11141115
permissions:
11151116
contents: write
11161117
concurrency:

0 commit comments

Comments
 (0)