-
Notifications
You must be signed in to change notification settings - Fork 90
41 lines (41 loc) · 1.03 KB
/
ci.yaml
File metadata and controls
41 lines (41 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
pull_request:
push:
branches-ignore:
- dependabot/*
- renovate/*
schedule:
- cron: 0 0 * * *
workflow_dispatch:
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
test-suite:
- test
- test:security
steps:
- uses: actions/checkout@v6
- name: Set up system
run: bin/before_install
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version-file: package.json
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