Switch to caddy 2.8 #64
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: rspec tests | |
on: [pull_request] | |
jobs: | |
rspec: | |
name: Rspec | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: ["5432:5432"] | |
env: | |
POSTGRES_DB: continuous_monitoring_test | |
POSTGRES_USER: cidbuser | |
POSTGRES_PASSWORD: postgres | |
steps: | |
- uses: actions/checkout@v4 | |
- id: setup | |
uses: ./.github/actions/setup-project | |
with: | |
rails_env: test | |
- name: Run rspec | |
env: | |
DATABASE_URL: ${{ steps.setup.outputs.database_url }} | |
rspec_oscal_output: tmp | |
run: bundle exec rspec | |
- name: Plant assessment plan in evidence locker | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
uses: ./.github/actions/auditree-cmd | |
env: | |
GITHUB_TOKEN: ${{ secrets.AUDITREE_GITHUB_TOKEN }} | |
with: | |
email: "ryan.ahearn@gsa.gov" | |
volume: tmp/oscal/assessment-plans/rspec/assessment-plan.json:/tmp/rspec.json:ro | |
cmd: | |
plant-helper -f /tmp/rspec.json -c assessment-plans -d "RSpec run assessment plan" | |
-t 31536000 -l https://github.com/gsa-tts/continuous-assessment-poc-evidence | |
- name: Plant assessment results in evidence locker | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
uses: ./.github/actions/auditree-cmd | |
env: | |
GITHUB_TOKEN: ${{ secrets.AUDITREE_GITHUB_TOKEN }} | |
with: | |
email: "ryan.ahearn@gsa.gov" | |
volume: tmp/oscal/assessment-results/rspec/assessment-results.json:/tmp/rspec.json:ro | |
cmd: | |
plant-helper -f /tmp/rspec.json -c assessment-results -d "RSpec run assessment results" | |
-t 31536000 -l https://github.com/gsa-tts/continuous-assessment-poc-evidence | |
- name: Save assessment results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: continuous_monitoring_assessment | |
path: tmp/oscal |