Update Dockerfile files #46
Workflow file for this run
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: test-lint | |
on: | |
workflow_call: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
permissions: | |
contents: read | |
env: | |
docker_org: stelligent | |
jobs: | |
tests-linting: | |
name: Tests & Linting | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false # Allows both ruby versions to run before failing | |
matrix: | |
ruby: ['2.5', '3.0'] | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Rubocop lint | |
run: bundle exec rubocop -D | |
- name: Rspec tests | |
run: bundle exec rspec --require spec_helper spec | |
- name: Duplicate rule check | |
run: bundle exec ./bin/cfn_nag_rules | |
acceptance: | |
name: Acceptance | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false # Allows both ruby versions to run before failing | |
matrix: | |
ruby: ['2.5', '3.0'] | |
steps: | |
# is this the same commit hash we saw in commit? | |
- uses: actions/checkout@master | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: e2e | |
run: bash ./scripts/setup_and_run_end_to_end_tests.sh |