Skip to content

Fixes #36649 - Remove katello-agent out of legacy UI #7548

Fixes #36649 - Remove katello-agent out of legacy UI

Fixes #36649 - Remove katello-agent out of legacy UI #7548

Workflow file for this run

name: React Tests (non-blocking)
on: [pull_request]
defaults:
run:
working-directory: ./katello
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: ${{ github.workspace }}/katello
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
# We could update the postinstall action for foreman to look for an environment variable for plugin webpack dirs
# before kicking off the ruby script to find them, this would eliminate the ruby dep and running `npm i` in Katello.
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Checkout Foreman repo
uses: actions/checkout@v2
with:
repository: theforeman/foreman
path: ${{ github.workspace }}/foreman # checkout Foreman and Katello as siblings, same as dev env
ref: develop
- name: Generate Foreman dependencies package-lock
run: npm i --package-lock-only --no-audit
working-directory: ${{ github.workspace }}/foreman
- name: Install Foreman dependencies
run: npm ci --no-audit
working-directory: ${{ github.workspace }}/foreman
- name: Generate Katello dependencies package-lock
run: npm i --package-lock-only --no-audit
- name: Install Katello dependencies
run: npm ci --no-audit
- name: Run Katello linting
run: npm run lint
- name: Run Katello tests
run: npm test