Skip to content

Commit

Permalink
Debugging Fedora CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceiphr committed Jun 28, 2023
1 parent c9a02a1 commit d15d898
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,18 @@ jobs:
run: |
{
echo 'FROM fedora:${{ matrix.fedora-version }}'
echo '# Set TZ to ensure the test using timestamp'
echo '# Set environment variables'
echo 'ENV TZ=America/New_York'
echo 'ENV TERM=linux'
echo 'ENV CI=true'
echo '# Install packages'
echo 'RUN dnf -y update'
echo 'RUN dnf -y install git'
echo 'RUN dnf clean all'
echo '# Copy dotfiles'
echo 'COPY dotfiles dotfiles'
echo 'WORKDIR /dotfiles'
echo '# Run tests'
echo 'RUN bash --version'
echo 'RUN bash -c "time sh test/bats/bin/bats --print-output-on-failure test/test.bats"'
} > podmanfile
Expand Down
6 changes: 3 additions & 3 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ function install_dnf() {

# RPM Fusion
echo -e "${TXT_YELLOW}+${TXT_DEFAULT} Adding RPM Fusion repo..."
sudo dnf install \
sudo dnf install -y \
https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install \
sudo dnf install -y \
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

# 1Password
Expand All @@ -118,7 +118,7 @@ function install_dnf() {
sudo sh -c 'echo -e "[charm]\nname=Charm\nbaseurl=https://repo.charm.sh/yum/\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.charm.sh/yum/gpg.key" > /etc/yum.repos.d/charm.repo' >/dev/null 2>&1 || error "Unable to add Charm repo."

# Lazygit
sudo dnf copr enable atim/lazygit -y >/dev/null 2>&1 || error "Unable to add Lazygit repo."
sudo dnf copr enable atim/lazygit -y || error "Unable to add Lazygit repo."

# VSCode
echo -e "${TXT_YELLOW}+${TXT_DEFAULT} Adding VSCode repo..."
Expand Down

0 comments on commit d15d898

Please sign in to comment.