Skip to content

Commit

Permalink
ci: disable manjaro tests due to bash currently being broken on its C…
Browse files Browse the repository at this point in the history
…I image
  • Loading branch information
balupton committed Feb 22, 2024
1 parent faf3222 commit 1afa8c4
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 23 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/dorothy-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ jobs:
- 'fedora:latest' # https://hub.docker.com/_/fedora
- 'debian:latest' # https://hub.docker.com/_/debian
- 'alpine:latest' # https://hub.docker.com/_/alpine <-- script -qec workaround for TTY does not work on alpine
- 'manjarolinux/base' # https://hub.docker.com/r/manjarolinux/base
- 'opensuse/leap' # https://hub.docker.com/r/opensuse/leap <-- has outdated bash, so is good to test
- 'opensuse/tumbleweed' # https://hub.docker.com/r/opensuse/tumbleweed
- 'kalilinux/kali-rolling' # https://hub.docker.com/r/kalilinux/kali-rolling <-- apt based
# - 'manjarolinux/base' # https://hub.docker.com/r/manjarolinux/base <-- broken due to https://gitlab.manjaro.org/packages/core/bash/-/issues/8 trying to remove it, trying to sync/refresh it, trying everything fails, as such disabled test, see all the failed CI attempts sinc: https://github.com/bevry/dorothy/actions/runs/7999660175/job/21847844816#step:3:84
# - 'voidlinux/voidlinux' # https://hub.docker.com/r/voidlinux/voidlinux <-- locale failure, remote failure: https://github.com/bevry/dorothy/actions/runs/6622814794/job/17988863384
# - 'mageia:cauldron' # https://hub.docker.com/_/mageia <-- cauldron is were moreutils is, disabled as couldn't get working
# - 'nixos/nix' # https://hub.docker.com/r/nixos/nix <-- doesn't make bash available to env, also locale failure
Expand All @@ -167,13 +167,10 @@ jobs:
# for alpine
apk update
apk add bash curl git grep
elif command -v pamac; then
# for manjaro, prefer over arch as majaro also contains pacman
pamac install --no-confirm bash curl
elif command -v pacman; then
# for arch
# for manjaro (manjaro CI image doesn't have pamac installed) and arch
pacman-key --init
pacman --refresh --sync --needed --noconfirm bash curl
pacman --noconfirm --refresh --sync --needed bash curl
elif command -v urpmi; then
# for mageia, prefer over fedora as mageia also contains dnf
# https://wiki.mageia.org/en/Cauldron
Expand Down
12 changes: 6 additions & 6 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# https://features.trunk.io/check/p/trunk-doesnt-work-in-nested-repo
version: 0.1
cli:
version: 1.19.0
version: 1.20.1
plugins:
sources:
- id: trunk
ref: v1.4.2
ref: v1.4.3
uri: https://github.com/trunk-io/plugins
runtimes:
enabled:
Expand All @@ -22,20 +22,20 @@ lint:
enabled:
- [email protected]
- [email protected]
- [email protected].20
- [email protected].22
- [email protected]
- [email protected]
- git-diff-check@SYSTEM
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected].1
- [email protected].2
- [email protected]
- [email protected]
- [email protected]
- [email protected].6
- yamllint@1.34.0
- [email protected].7
- yamllint@1.35.1
disabled:
- trivy
- oxipng # broken for some reason on my mac mini
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Dorothy is a dotfile ecosystem featuring:
| ⭕️ [Ubuntu Server][URPI] | 🍓 Raspberry Pi 4/400/5 (ARM64) | 👌 Daily Driver |
| ⭕️ [Ubuntu Server][US] | 👔 Intel/AMD (x86_64) | 👌 Daily Driver, 🤖 CI |
| ⭕️ [Ubuntu Server][UV5] | 5️⃣ StarFive’s VisionFive (RISC-V) | 🌗 Monthly Driver |
|[Manjaro][M]/[Arch][A] | 👔 Intel/AMD (x86_64) | 👌 Daily Driver, 🤖 CI |
|[Manjaro][M] / [Arch][A] | 👔 Intel/AMD (x86_64) | 👌 Daily Driver, 🤖 CI |
|[Fedora Workstation][FW] | 👔 Intel/AMD (x84_64) | 🌗 Monthly Driver, 🤖 CI |
| 🦎 [OpenSUSE][OS] [Leap][OSL] & [Tumbleweed][OST] | 👔 Intel/AMD (x84_64) | 🌗 Monthly Driver, 🤖 CI |
|[Alpine][AL] | 👔 Intel/AMD (x84_64) | 🌗 Monthly Driver, 🤖 CI |
Expand Down
12 changes: 8 additions & 4 deletions commands/dorothy
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ function dorothy_() (
test "$(uname -s)" = 'Linux'
}

# see commands/is-manjaro for details
function __is_manjaro {
uname -r | grep --quiet --ignore-case --fixed-strings --regexp='manjaro'
}

# see commands/fs-realpath for details
function __fs_realpath {
# options
Expand Down Expand Up @@ -446,11 +451,11 @@ function dorothy_() (
# for alpine
__try_sudo apk add bash curl grep git ncurses coreutils moreutils gawk
elif __command_exists pamac; then
# for manjaro, prefer over arch as majaro also contains pacman
# for manjaro that has pamac installed
__try_sudo pamac install --no-confirm bash curl git ncurses procps-ng coreutils moreutils gawk
elif __command_exists pacman; then
# for arch
__try_sudo pacman --refresh --sync --needed --noconfirm bash curl git ncurses procps-ng coreutils moreutils gawk
# for manjaro and arch
__try_sudo pacman --noconfirm --refresh --sync --needed bash curl git ncurses procps-ng coreutils moreutils gawk
elif __command_exists urpmi; then
# for mageia, prefer over fedora as mageia contains dnf
# No package named moreutils
Expand Down Expand Up @@ -839,7 +844,6 @@ function dorothy_() (

# helpers
function install_dorothy {
local clone_args=()
print_line "Installing Dorothy into $DOROTHY"
if test -n "$option_branch"; then
git clone --branch "$option_branch" --single-branch "https://github.com/$option_slug.git" "$DOROTHY"
Expand Down
2 changes: 1 addition & 1 deletion commands/setup-linux
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function setup_linux() (
# this is needed on systems which pacman was installed
sudo-helper -- pacman-key --init
# refresh the local database
sudo-helper -- pacman --refresh --sync --noconfirm
sudo-helper -- pacman --noconfirm --refresh --sync
}

function do_urpmi_update {
Expand Down
2 changes: 0 additions & 2 deletions commands/setup-util
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,6 @@ function setup_util() (
args+=(
'pacman'
'--noconfirm'
'--refresh'
'--sync'
'--remove'
)
elif test "$option_upgrade" = 'yes'; then
Expand Down
2 changes: 1 addition & 1 deletion commands/setup-util-bash
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ function setup_util_bash() (
AUR='bash' # ARCH
BREW='bash'
EMERGE='app-shells/bash' # GENTOO
URPMI='bash' # MAGEIA
NIX='nixpkgs.bash'
RPM='bash' # FEDORA
URPMI='bash' # MAGEIA
XBPS='bash' # VOID
ZYPPER='bash' # SUSE
)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@
],
"devDependencies": {
"@bevry/github-api": "^11.4.0",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"eslint-config-bevry": "^5.5.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
Expand Down

0 comments on commit 1afa8c4

Please sign in to comment.