mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
- Added devcontainer configuration based on Ubuntu 24.04 - Added GitHub Actions workflow for devcontainer testing - Update cSpell configuration to ingore spelling in devcontainer configs - Update pre-commit hooks to exclude cSpell.json because pre-commit fails for that file due to json with comments format - Fix filename for cSpell config in vscode settings - Two tests in `test_dd.rs` are now skipped if /dev/sda1 is not available, which is the case in devcontainer - Update check for existing gnu clone in build-gnu.sh, not checking the existence of the directory but the presence of the .git directory. This allows us to have the directly as a volume mount in devcontainer - Remove temporary file `g` after use in build-gnu.sh
34 lines
848 B
YAML
34 lines
848 B
YAML
name: Devcontainer
|
|
|
|
# spell-checker:ignore devcontainers nextest
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
# End the current execution if there is a new changeset in the PR.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
|
|
jobs:
|
|
test:
|
|
name: Verify devcontainer
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run test in devcontainer
|
|
uses: devcontainers/ci@v0.3
|
|
with:
|
|
push: never
|
|
runCmd: |
|
|
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
|
|
cargo nextest run --hide-progress-bar --profile ci
|