-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (47 loc) · 1.47 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: check
on: [push]
jobs:
code-style:
runs-on: ubuntu-latest
steps:
- name: Setup system requirements
run: |
sudo apt-get -y update
sudo apt-get -y install imagemagick \
libmagickwand-dev
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Install gem dependencies
run: |
gem install bundler
bundle config set with 'development'
bundle install --jobs 4 --retry 3
- name: Run RuboCop check
run: rubocop
- name: Check that code 100% documented
run: yardoc . | grep -q '100.00% documented'
run_all_specs_in_default_docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Running test inside doc-builder-testing
run: |
docker build -t doc-builder-testing .
docker run -t doc-builder-testing
run_critical_in_all_dockerfiles:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfiles:
- "dockerfiles/rockylinux-latest/Dockerfile"
- "dockerfiles/debian-develop/Dockerfile"
- "dockerfiles/debian-next-release/Dockerfile"
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Dockerfile ${{ matrix.dockerfiles }}
run: |
docker build -t doc-builder-testing -f ${{ matrix.dockerfiles }} .
docker run doc-builder-testing