ci: update GitHub Action versions #373
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Test | |
"on": | |
push: | |
branches: main | |
pull_request: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: npm | |
- run: npm ci | |
- name: "Lint: credentials" | |
run: npx secretlint "**/*" | |
- name: "Lint: text (prose)" | |
uses: errata-ai/vale-action@v2 | |
with: | |
files: > | |
["README.md", "docs/CONTRIBUTING.md", "docs/SECURITY.md", | |
".github/PULL_REQUEST_TEMPLATE.md", ".github/ISSUE_TEMPLATE"] | |
reporter: github-check | |
fail_on_error: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: "Lint: npm" | |
run: npm run lint | |
- name: "Lint: Git commit message" | |
# Skip commitlint if a commit is created by Dependabot. | |
# Because a line length of a commit message created by Dependabot often | |
# exceeds 100 characters. | |
if: github.actor != 'dependabot[bot]' | |
uses: wagoid/commitlint-github-action@v6 | |
with: | |
configFile: .commitlintrc.yml | |
- name: "Lint: YAML" | |
uses: karancode/yamllint-github-action@v2 | |
with: | |
yamllint_strict: true | |
- name: "Lint: shell script" | |
uses: ludeeus/action-shellcheck@master | |
with: | |
ignore_paths: .husky/_ node_modules | |
- name: "Lint: GitHub Actions workflow" | |
# yamllint disable rule:line-length | |
run: | | |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
./actionlint -color | |
# yamllint enable rule:line-length | |
shell: bash | |
# yamllint disable rule:comments-indentation | |
# If this is an npm project and package.json has build or test script, | |
# uncomment the following jobs. | |
# build: | |
# name: Build | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/setup-node@v4 | |
# with: | |
# node-version-file: .node-version | |
# cache: npm | |
# - run: npm ci | |
# - run: npm run build | |
# test: | |
# name: Test | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/setup-node@v4 | |
# with: | |
# node-version-file: .node-version | |
# cache: npm | |
# - run: npm ci | |
# - run: npm test | |
# yamllint enable rule:comments-indentation |