-
Notifications
You must be signed in to change notification settings - Fork 994
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into rhsm-non-rhel
- Loading branch information
Showing
233 changed files
with
5,142 additions
and
2,306 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"postgresql": ["12"], | ||
"ruby": ["2.7"], | ||
"node": ["14"] | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
--- | ||
name: Foreman | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'develop' | ||
- '*-stable' | ||
|
||
env: | ||
RAILS_ENV: test | ||
DATABASE_URL: postgresql://postgres:password@localhost/test | ||
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: true | ||
BUNDLE_WITHOUT: "console:development:journald" | ||
|
||
concurrency: | ||
group: ${{ github.ref_name }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
setup_matrix: | ||
name: Setup matrix | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.build_matrix.outputs.matrix }} | ||
steps: | ||
- name: Build test matrix | ||
id: build_matrix | ||
uses: theforeman/gha-matrix-builder@v0 | ||
|
||
rubocop: | ||
name: Rubocop | ||
needs: setup_matrix | ||
runs-on: ubuntu-latest | ||
env: | ||
BUNDLE_WITHOUT: assets:console:development:dynflow_sidekiq:ec2:journald:jsonp:libvirt:openid:openstack:ovirt:redis:service:telemetry:vmware | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ fromJson(needs.setup_matrix.outputs.matrix).ruby[0] }} | ||
bundler-cache: true | ||
- name: Run rubocop | ||
run: bundle exec rubocop -P | ||
|
||
tests: | ||
name: "${{ matrix.task }} - Ruby ${{ matrix.ruby }} and Node ${{ matrix.node }} on PostgreSQL ${{ matrix.postgresql }}" | ||
runs-on: ubuntu-latest | ||
needs: | ||
- setup_matrix | ||
- rubocop | ||
services: | ||
postgres: | ||
image: 'postgres:${{ matrix.postgresql }}' | ||
ports: ['5432:5432'] | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
env: | ||
POSTGRES_PASSWORD: password | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: ${{ fromJson(needs.setup_matrix.outputs.matrix).ruby }} | ||
node: ${{ fromJson(needs.setup_matrix.outputs.matrix).node }} | ||
postgresql: ${{ fromJson(needs.setup_matrix.outputs.matrix).postgresql }} | ||
task: | ||
- 'test:units' | ||
- 'test:functionals' | ||
- 'test:graphql' | ||
- 'webpack:compile test:integration' | ||
- 'db:seed' | ||
- 'assets:precompile RAILS_ENV=production DATABASE_URL=nulldb://nohost' | ||
steps: | ||
- run: sudo apt-get update | ||
- run: sudo apt-get -qq -y install build-essential libcurl4-openssl-dev zlib1g-dev libpq-dev libvirt-dev | ||
- name: "Check out Foreman" | ||
uses: actions/checkout@v4 | ||
- name: "Set up Ruby ${{ matrix.ruby }}" | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Archive Gemfile.lock | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Gemfile-ruby-${{ matrix.ruby }}-node-${{ matrix.node }}-pg-${{ matrix.postgresql }}.lock | ||
path: Gemfile.lock | ||
- name: "Set up Node ${{ matrix.node }}" | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Setup NPM Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node-${{ matrix.node }}- | ||
if: contains(matrix.task, 'compile') | ||
- name: Generate package-lock.json | ||
run: npm install --package-lock-only --no-audit | ||
if: contains(matrix.task, 'compile') | ||
- name: Archive package-lock.json | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: package-lock-ruby-${{ matrix.ruby }}-node-${{ matrix.node }}-pg-${{ matrix.postgresql }}.json | ||
path: package-lock.json | ||
if: contains(matrix.task, 'compile') | ||
- name: Install NPM packages | ||
run: npm ci --no-audit | ||
if: contains(matrix.task, 'compile') | ||
- name: Prepare test env | ||
run: | | ||
bundle exec rake db:create | ||
bundle exec rake db:migrate | ||
- name: Run rake ${{ matrix.task }} | ||
run: bundle exec rake ${{ matrix.task }} | ||
|
||
result: | ||
name: Test suite | ||
runs-on: ubuntu-latest | ||
needs: tests | ||
steps: | ||
- run: echo Test suite completed |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ jobs: | |
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v4 | ||
- uses: actions/labeler@v5 |
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,3 +54,4 @@ npm-debug.log | |
.solargraph.yml | ||
.nvmrc | ||
mkmf.log | ||
.yardoc/ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
[main] | ||
host = https://www.transifex.com | ||
host = https://app.transifex.com | ||
|
||
[o:foreman:p:foreman:r:foreman] | ||
file_filter = locale/<lang>/foreman.edit.po | ||
source_file = locale/foreman.pot | ||
source_lang = en | ||
type = PO | ||
replace_edited_strings = false | ||
keep_translations = false | ||
|
||
[foreman.foreman] | ||
file_filter = locale/<lang>/foreman.edit.po | ||
source_file = locale/foreman.pot | ||
source_lang = en | ||
type = PO |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.9.0-develop | ||
3.10.0-develop |
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
Oops, something went wrong.