diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 4c181ca..66e7f5a 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -5,8 +5,10 @@ on: [push, pull_request] jobs: shasums: runs-on: ubuntu-latest + container: + image: rusian/base-node steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run shasums script run: | cp -rv ./hyperterm/ "$HOME/.hyperterm/" @@ -14,79 +16,80 @@ jobs: cp -v ./hyperterm/_custom.sh "$HOME" rm -rfv hyperterm/ (cd "$HOME/.hyperterm/" && sha512sum -c hyperterm.sha512) - (cd "$HOME" && bash -x .bashrc) build: runs-on: ubuntu-latest needs: shasums + container: + image: rusian/base-node steps: - uses: actions/checkout@v4 - - name: Set up locales run: | - sudo apt-get update -y - sudo apt-get install -y locales less - sudo sed -i 's/# \(es_ES.UTF-8 UTF-8\)/\1/' /etc/locale.gen - sudo sed -i 's/# \(en_US.UTF-8 UTF-8\)/\1/' /etc/locale.gen - sudo locale-gen es_ES.UTF-8 - export LANG=es_ES.UTF-8 LANGUAGE=es_ES + doas pacman -Syu --noconfirm + doas pacman -S --noconfirm glibc less + echo "es_ES.UTF-8 UTF-8" | doas tee -a /etc/locale.gen + echo "en_US.UTF-8 UTF-8" | doas tee -a /etc/locale.gen + locale-gen + export LANG=es_ES.UTF-8 + export LANGUAGE=es_ES - - name: Install dependencies for shellcheck - run: sudo apt-get install -y xz-utils shellcheck + # - name: Install dependencies for shellcheck + # run: pacman -S --noconfirm xz shellcheck - - name: Run shellcheck on bash profile - run: | - shellcheck .bash_profile - shellcheck ./hyperterm/hyperterm.sh - shellcheck ./hyperterm/_custom.sh + # - name: Run shellcheck on bash profile + # run: | + # shellcheck .bash_profile + # shellcheck ./hyperterm/hyperterm.sh + # shellcheck ./hyperterm/_custom.sh - - name: Run shellcheck on build script - run: shellcheck build.sh + # - name: Run shellcheck on build script + # run: shellcheck build.sh - - name: Run build script - run: bash -x build.sh + # - name: Run build script + # run: bash -x build.sh - - name: Run shellcheck on core scripts - run: | - shellcheck hyperterm/core/autocomplete.sh - shellcheck hyperterm/core/colors.sh - shellcheck hyperterm/core/git.sh - shellcheck hyperterm/core/languages.sh - shellcheck hyperterm/core/status.sh - shellcheck hyperterm/core/update.sh + # - name: Run shellcheck on core scripts + # run: | + # shellcheck hyperterm/core/autocomplete.sh + # shellcheck hyperterm/core/colors.sh + # shellcheck hyperterm/core/git.sh + # shellcheck hyperterm/core/languages.sh + # shellcheck hyperterm/core/status.sh + # shellcheck hyperterm/core/update.sh - - name: Run shellcheck on theme scripts - run: | - shellcheck hyperterm/themes/default.sh - shellcheck hyperterm/themes/joy.sh - shellcheck hyperterm/themes/light_theme.sh - shellcheck hyperterm/themes/minterm.sh - shellcheck hyperterm/themes/pure.sh - shellcheck hyperterm/themes/simple.sh - shellcheck hyperterm/themes/special.sh + # - name: Run shellcheck on theme scripts + # run: | + # shellcheck hyperterm/themes/default.sh + # shellcheck hyperterm/themes/joy.sh + # shellcheck hyperterm/themes/light_theme.sh + # shellcheck hyperterm/themes/minterm.sh + # shellcheck hyperterm/themes/pure.sh + # shellcheck hyperterm/themes/simple.sh + # shellcheck hyperterm/themes/special.sh - - name: Run shellcheck on tools scripts - run: | - shellcheck hyperterm/tools/aliases.sh - shellcheck hyperterm/tools/compress.sh - shellcheck hyperterm/tools/export.sh - shellcheck hyperterm/tools/listuser.sh - shellcheck hyperterm/tools/network.sh - shellcheck hyperterm/tools/proxy.sh - shellcheck hyperterm/tools/rar2zip.sh - shellcheck hyperterm/tools/ruby.sh - shellcheck hyperterm/tools/ssh-agent.sh - shellcheck hyperterm/tools/sysinfo.sh - shellcheck hyperterm/tools/virtualenv.sh + # - name: Run shellcheck on tools scripts + # run: | + # shellcheck hyperterm/tools/aliases.sh + # shellcheck hyperterm/tools/compress.sh + # shellcheck hyperterm/tools/export.sh + # shellcheck hyperterm/tools/listuser.sh + # shellcheck hyperterm/tools/network.sh + # shellcheck hyperterm/tools/proxy.sh + # shellcheck hyperterm/tools/rar2zip.sh + # shellcheck hyperterm/tools/ruby.sh + # shellcheck hyperterm/tools/ssh-agent.sh + # shellcheck hyperterm/tools/sysinfo.sh + # shellcheck hyperterm/tools/virtualenv.sh - - name: Run shellcheck on install script - run: shellcheck install.sh + # - name: Run shellcheck on install script + # run: shellcheck install.sh - - name: Run install script - run: bash -x install.sh -s + # - name: Run install script + # run: bash -x install.sh -s - - name: Run shellcheck on uninstall script - run: shellcheck uninstall.sh + # - name: Run shellcheck on uninstall script + # run: shellcheck uninstall.sh - - name: Run uninstall script - run: bash -x uninstall.sh -s + # - name: Run uninstall script + # run: bash -x uninstall.sh -s