mirror of
https://github.com/fanlumaster/googlepinyinime-rev.git
synced 2026-10-10 04:53:13 +08:00
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
name: Repository quality
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
merge_group:
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: read
|
|
concurrency:
|
|
group: quality-${{ github.event_name }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
workflows:
|
|
name: Workflow validation
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
|
|
with:
|
|
go-version: '1.26'
|
|
cache: false
|
|
- name: Install actionlint
|
|
run: go install github.com/rhysd/actionlint/cmd/actionlint@v1.7.12
|
|
- name: Validate workflows and embedded shell scripts
|
|
env:
|
|
# Ignore style suggestions, but fail on shell correctness warnings and errors.
|
|
SHELLCHECK_OPTS: --severity=warning
|
|
run: actionlint -color
|
|
dependencies:
|
|
name: Dependency review
|
|
if: github.event_name == 'pull_request'
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4
|
|
with:
|
|
fail-on-severity: high
|