Fixes #36693 - Add new host status for RHEL lifecycle #7569
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: 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 |