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 55bf557
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
18 changes: 9 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,26 @@ 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
sudo apt update
sudo apt install vagrant vagrant-sshfs virtualbox
sudo apt install vagrant virtualbox
- 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
5 changes: 3 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

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"
vb.gui = false # Headless mode (no GUI)

config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder ".", "/usr/src/freeipa-webui"
Expand All @@ -27,7 +28,7 @@ Vagrant.configure("2") do |config|

# Virtualbox is used by the CI
config.vm.provider "virtualbox" do |vb|
vb.memory = 2048
vb.memory = 4096 # Before: 2048
end

# Install system dependencies
Expand Down

0 comments on commit 55bf557

Please sign in to comment.