Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow for La Semaphorica Cartesio #402

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/semaphorica_cartesio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will run rspec

name: La Semaphorica Cartesio
on:
pull_request:
types: [ opened, reopened, synchronize, labeled ]
schedule:
# schedule runs only on the default branch. time is in UTC.
# * is a special character in YAML so you have to quote this string.
# run every night at 10:00PM UTC.
- cron: '0 22 * * *'
jobs:
test:
if: ${{ github.event_name == 'schedule' || contains(github.event.pull_request.labels.*.name, 'testhub') }}
runs-on: [ self-hosted, Linux, X64, cartesio ]
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems

- name: Run tests
run: bundle exec rspec --format Validator::Brief --format Validator::Details --out log/validation.log spec/site/tlc
env:
SITE_CONFIG: config/semaphorica_cartesio.yaml

- name: Show detailed log
if: always()
run: cat log/validation.log

- name: Rename validation.log
if: always()
run: |
mv log/validation.log log/validation_cartesio_$(date +%F_%H-%M-%S).log

- name: Upload validation.log
if: always()
uses: actions/upload-artifact@v4
with:
name: rspec-validation
path: log/validation_cartesio_*.log