Building with docker build -t gluster-centos CentOS command does not work due to missing dependencies #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linter and Container tests | |
on: | |
issue_comment: | |
branches: | |
- "master" | |
types: | |
- "created" | |
- "edited" | |
- "deleted" | |
jobs: | |
lint_and_test: | |
if: | | |
contains(github.event.comment.html_url, '/pull/') && | |
contains(github.event.comment.body, '/test') | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the current repo | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# Prepare the runner | |
- name: Prepare the runner | |
run: | | |
sudo apt install shellcheck | |
sudo npm install -g dockerfile_lint | |
# Run the linter tests | |
- name: Run linter tests | |
run: make | |
# Run the container tests for CentOS | |
- name: Run CentOS container tests | |
run: tests/container-tests.sh centos | |
# Run the container tests for Fedora | |
- name: Run Fedora container tests | |
run: tests/container-tests.sh fedora |