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

0 commit comments

Comments
 (0)