Skip to content

Commit ad422c3

Browse files
authored
Merge pull request #2086 from m-tmatma/feature/check-encoding
Azure Pipeline でのみ実装されている文字コードチェックの 処理を GitHub Actions に移植する
2 parents ea4e1a6 + de490ff commit ad422c3

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Check Encoding
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '**/*.md'
7+
- '.gitignore'
8+
- '.editorconfig'
9+
- 'appveyor.yml'
10+
pull_request:
11+
paths-ignore:
12+
- '**/*.md'
13+
- '.gitignore'
14+
- '.editorconfig'
15+
- 'appveyor.yml'
16+
workflow_dispatch:
17+
18+
jobs:
19+
check-encoding:
20+
runs-on: windows-latest
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0 # 過去の履歴も含めて全て取得 (checkEncoding.py で origin/master にアクセスするため)
26+
27+
- name: Show environment variables for debug
28+
run: set
29+
shell: cmd
30+
31+
- name: Set up Python ${{ matrix.python-version }}
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: '3.x'
35+
36+
- name: Python version check
37+
run: python --version
38+
shell: cmd
39+
40+
- name: Install chardet
41+
run: pip install chardet --user
42+
shell: cmd
43+
44+
- name: Check encoding
45+
run: python checkEncoding.py
46+
shell: cmd

0 commit comments

Comments
 (0)