-
Notifications
You must be signed in to change notification settings - Fork 294
63 lines (58 loc) · 1.68 KB
/
ruby.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
name: CI
on:
pull_request:
push:
branches:
- 'master'
- 'KATELLO-*'
concurrency:
group: ${{ github.ref_name }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
rubocop:
name: Rubocop
uses: theforeman/actions/.github/workflows/rubocop.yml@v0
with:
command: bundle exec rubocop --parallel --format github
test:
name: Ruby
needs: rubocop
uses: theforeman/actions/.github/workflows/foreman_plugin.yml@v0
with:
plugin: katello
postgresql_container: ghcr.io/theforeman/postgresql-evr
test_existing_database: false
foreman_version: develop # set to the Foreman release branch after branching :)
angular:
name: Angular ${{ matrix.engine }} - NodeJS ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
engine:
- bastion
- bastion_katello
node:
- '18'
defaults:
run:
working-directory: "engines/${{ matrix.engine }}"
steps:
- uses: actions/checkout@v4
- name: "Set up Node ${{ matrix.node }}"
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install -g grunt-cli bower
- name: install bastion for bastion_katello
if: ${{ matrix.engine == 'bastion_katello' }}
run: |
npm install --package-lock-only --no-audit --legacy-peer-deps
npm ci --no-audit --legacy-peer-deps
working-directory: "engines/bastion"
- name: npm install
run: |
npm install --package-lock-only --no-audit --legacy-peer-deps
npm ci --no-audit --legacy-peer-deps
- run: grunt ci