mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-06-04 10:38:41 +02:00
9b7aa41d20
Pin workflow actions to commit SHAs, set explicit permissions and timeouts, update Ubuntu runners, and include the generated action bundle. Co-Authored-By: Codex <noreply@openai.com>
38 lines
770 B
YAML
38 lines
770 B
YAML
name: 'Dev Image CI'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '.github/workflows/dev-image.yml'
|
|
- '.dockerignore'
|
|
- '.nvmrc'
|
|
- 'Dockerfile'
|
|
- 'Makefile'
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
paths:
|
|
- '.github/workflows/dev-image.yml'
|
|
- '.dockerignore'
|
|
- '.nvmrc'
|
|
- 'Dockerfile'
|
|
- 'Makefile'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
dev-image-test:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
- run: make build
|
|
- run: make cirun cmd="npm ci"
|
|
# - run: make ciall
|
|
- run: make cirun cmd="npm run format:check"
|
|
- run: make cirun cmd="npm run lint"
|