Skip to content

Update copyright assignation to be more specific #1525

Update copyright assignation to be more specific

Update copyright assignation to be more specific #1525

Workflow file for this run

name: Ruby tests
on:
push:
branches: [master, foreman_2_1, foreman_1_24]
paths-ignore:
- '**/.github/**/*'
pull_request:
branches: [master, foreman_2_1, foreman_1_24]
paths-ignore:
- '**/.github/**/*'
defaults:
run:
working-directory: /projects/foreman
jobs:
test_ruby:
defaults:
run:
working-directory: /projects/foreman
env:
PGHOST: postgres
PGUSER: foreman
PGPASS: foreman
RAILS_ENV: test
host: postgres
WORKDIR: /projects/foreman
BUNDLE_PATH: vendor/bundle
GIT_COMMITTER_NAME: "gh_actions"
GIT_COMMITTER_EMAIL: "gh_actions@rh_cloud.foreman"
runs-on: ubuntu-latest
container:
image: ghcr.io/theforeman/tfm_plugin_test:master
services:
postgres:
image: quay.io/jomitsch/postgres-with-evr
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_USER: foreman
POSTGRES_PASSWORD: foreman
steps:
- name: Checkout foreman_rh_cloud repo
uses: actions/checkout@v2
with:
path: ${{ github.workspace }}/projects/foreman_rh_cloud
- name: Fix git config
run: |
rm -rf /projects/foreman_rh_cloud/{app,test,lib}
cp -Rf $GITHUB_WORKSPACE/projects/foreman_rh_cloud /projects/
/usr/bin/entrypoint.sh pnpm config set store-dir /root/.pnpm-store/v3
/usr/bin/entrypoint.sh pnpm i @redhat-cloud-services/frontend-components
cd /projects/foreman
/usr/bin/entrypoint.sh git config --global user.name $GIT_COMMITTER_NAME
/usr/bin/entrypoint.sh git config --global user.email $GIT_COMMITTER_EMAIL
- name: Run tests suite
run: |
cd /projects/foreman
/usr/bin/entrypoint.sh /usr/bin/run_tests.sh