Repository navigation
52 lines (48 loc) · 2.03 KB
/
Copy pathdevcontainer.yml
File metadata and controls
52 lines (48 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Devcontainer
# RESTORED 2026-07-26 after being deleted earlier the same day.
#
# The delete was wrong for a reason that was not visible in classic branch
# protection: the repository ruleset `develop-merge-or-squash` lists
# "Build + test in devcontainer" as a REQUIRED status check for `develop`.
# `gh api repos/.../branches/develop/protection` reports no required checks,
# because rulesets are a separate mechanism — so removing this workflow made
# a required check that can never report, wedging every merge to develop.
#
# Check BOTH before touching a workflow's job name or existence:
# gh api repos/denniyahh/devflow/branches/<branch>/protection
# gh api repos/denniyahh/devflow/rules/branches/<branch>
#
# The job name below is that required check verbatim. Renaming it re-wedges
# develop. `main` separately requires Test/Clippy/Format from ci.yml.
#
# This is NOT a second definition of "green": it runs the same
# scripts/check.sh that ci.yml and scripts/check-in-container.sh run. What it
# adds over ci.yml is coverage of .devcontainer/devcontainer.json itself —
# ci.yml runs the pinned image directly, so a broken postCreateCommand or a
# bad devcontainer definition would otherwise reach developers unverified.
on:
push:
pull_request:
branches: [main, develop]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
devcontainer:
name: Build + test in devcontainer
runs-on: ubuntu-24.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v7
- name: Build devcontainer and run CI-parity checks
uses: devcontainers/ci@v0.3
with:
push: never
# `set -e` MUST stay the first line: runCmd runs under `bash -c`,
# and without it only the LAST command's exit code counts, so a
# failing check could not fail the job (15-REVIEW.md CR-01).
# ci_parity_guards.rs asserts this.
runCmd: |
set -e
git config --global --add safe.directory "$PWD"
scripts/check.sh all