Skip to content

Bump bootstrap from 4.6.2 to 5.3.1 #238

Bump bootstrap from 4.6.2 to 5.3.1

Bump bootstrap from 4.6.2 to 5.3.1 #238

Workflow file for this run

---
on:
- pull_request
name: CI
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@2.0.0
with:
scandir: './bin'
rubocop:
name: 'RuboCop'
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: development:test
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run tests
run: bundle exec rake rubocop
unit_tests:
name: Unit tests
runs-on: ubuntu-latest
env:
COVERAGE: true
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup config
run: mv config/hdm.yml{.template,}
- name: Run tests
run: bundle exec rake test:all
build_docker_image:
name: 'Built test Docker image'
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
# tags: 'ci/hdm:${{ github.sha }}'
platforms: linux/amd64
push: false
# - name: Run Trivy vulnerability scanner
# uses: aquasecurity/trivy-action@master
# with:
# image-ref: 'ci/hdm:${{ github.sha }}'
# format: 'sarif'
# output: 'trivy-results.sarif'
# - name: Upload Trivy scan results to GitHub Security tab
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: 'trivy-results.sarif'
tests:
needs:
- shellcheck
- rubocop
- unit_tests
runs-on: ubuntu-latest
name: Test suite
steps:
- run: echo Test suite completed