Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Carla Martinez <[email protected]>
  • Loading branch information
carma12 committed Jan 13, 2025
1 parent 9ef3983 commit 844a62c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/gating.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
jobs:
audit-and-build:
name: Audit and build
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
container:
image: fedora:latest

Expand All @@ -23,7 +23,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "21" # Before: "20"

- name: Audit dependencies
run: npx audit-ci --config audit-ci.json --skip-dev
Expand Down Expand Up @@ -57,14 +57,14 @@ jobs:
unit-tests:
name: Unit tests
needs: audit-and-build
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "21" # Before: "20"

- name: Install project
run: npm install
Expand All @@ -75,26 +75,28 @@ jobs:
integration-tests:
name: Integration tests
needs: audit-and-build
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4

- name: Install vagrant
run: |
sudo apt -y install apt-transport-https ca-certificates curl software-properties-common
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --dearmor --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] http://download.virtualbox.org/virtualbox/debian $(. /etc/os-release && echo "$VERSION_CODENAME") contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
sudo apt update
sudo apt install vagrant vagrant-sshfs virtualbox
sudo apt install vagrant virtualbox-7.1
- uses: actions/download-artifact@v4
with:
name: freeipa-webui-build
path: dist

- name: Run vagrant up
run: vagrant up --no-provision --provider=virtualbox
run: vagrant up --debug --no-provision --provider=virtualbox

- name: Run vagrant provision
run: vagrant provision
Expand Down
6 changes: 4 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@

Vagrant.configure("2") do |config|
config.vm.hostname = "server.ipa.demo"
config.vm.box = "fedora/39-cloud-base"
config.vm.box = "fedora/40-cloud-base"

config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder ".", "/usr/src/freeipa-webui"

# Needed by Cypress - optional if you edit your /etc/hosts
config.vm.network "forwarded_port", guest: 22, host: 2222, id: "ssh" ##
config.vm.network "forwarded_port", guest: 443, host: 443
config.vm.network "forwarded_port", guest: 80, host: 80
if ENV['GITHUB_CI']
Expand All @@ -27,7 +28,8 @@ Vagrant.configure("2") do |config|

# Virtualbox is used by the CI
config.vm.provider "virtualbox" do |vb|
vb.memory = 2048
vb.gui = false # Headless mode (no GUI)
vb.memory = 4096 # Before: 2048
end

# Install system dependencies
Expand Down

0 comments on commit 844a62c

Please sign in to comment.