Skip to content

CI

CI #1460

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18
test-suite:
- test
- test:security
steps:
- uses: actions/checkout@v4
- name: Set up system
run: bin/before_install
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: ${{ !env.ACT && 'yarn' || '' }}
registry-url: https://npm.manageiq.org/
- name: Prepare tests
run: bin/setup
- name: Run tests
run: yarn run ${{ matrix.test-suite }}
- name: Report code coverage
if: ${{ github.ref == 'refs/heads/master' && matrix.test-suite != 'test:security' }}
continue-on-error: true
run: cat reports/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js