Skip to content

Commit

Permalink
Added Fedora to CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceiphr committed Jun 28, 2023
1 parent a765b9c commit f269727
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# https://fedoramagazine.org/github-actions-use-podman-to-run-fedora-linux/
name: Fedora CI
on: [push, pull_request]
jobs:
fedora:
strategy:
matrix:
fedora-version: ['36', '37', '38', '39']
runs-on: ubuntu-latest
steps:
- name: Setup Podman
run: |
sudo apt update
sudo apt-get -y install podman
podman pull fedora:${{ matrix.fedora-version }}
- name: Get source
uses: actions/checkout@v3
with:
submodules: 'true'
path: 'dotfiles'
- name: Create container and run tests
run: |
{
echo 'FROM fedora:${{ matrix.fedora-version }}'
echo '# Set TZ to ensure the test using timestamp'
echo 'ENV TZ=America/New_York'
echo 'ENV TERM=linux'
echo 'ENV CI=true'
echo 'COPY dotfiles dotfiles'
echo 'WORKDIR /dotfiles'
echo 'RUN npm install -g bats'
echo 'RUN bash --version'
echo 'RUN bash -c "time bats --print-output-on-failure test/test.bats"'
} > podmanfile
podman build --tag fedora${{ matrix.fedora-version }}test -f ./podmanfile
4 changes: 2 additions & 2 deletions .github/workflows/main.yml → .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'CI'
name: Ubuntu (GitHub Codespaces) CI
on: [push, pull_request]
jobs:
linux:
ubuntu:
strategy:
matrix:
os: ['ubuntu-latest', 'ubuntu-20.04']
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

</h1>

<p align="center">Intended for Fedora/RHEL systems and GitHub Codespaces. Tested on Fedora 36.</p>
<p align="center">Intended for Fedora/RHEL systems and GitHub Codespaces. Tested on Fedora 38.</p>

## About The Project

Expand Down

0 comments on commit f269727

Please sign in to comment.