From b4fcc866e03b868e4a2bf005177fe115da44406c Mon Sep 17 00:00:00 2001 From: Rafid Bin Mostofa Date: Sun, 18 Feb 2024 21:58:23 +0600 Subject: [PATCH 1/2] chore: fix failing tests, update github actions --- .github/workflows/tests.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e09c9ba..2d4655e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,14 +7,17 @@ on: branches: [ "master" ] jobs: - build: - name: Build + run-scripts: + name: Run scripts runs-on: ubuntu-22.04 steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + + - name: Tweak options to run on GitHub + run: | + # Github runners already have a "admin" group. + sed -i 's/ADMIN_USER="admin"/ADMIN_USER="dummy-admin"/g' vars.sh - # Runs a single command using the runners shell - name: Run the scripts run: | - sudo bash install.sh + sudo ./install.sh From cef21b9ea10a0178d26f64dc6c070528f4a45f78 Mon Sep 17 00:00:00 2001 From: Rafid Bin Mostofa Date: Sun, 18 Feb 2024 22:12:22 +0600 Subject: [PATCH 2/2] chore: ignore user-specific scripts instead --- .github/workflows/tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2d4655e..1488dc2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,8 +15,9 @@ jobs: - name: Tweak options to run on GitHub run: | - # Github runners already have a "admin" group. - sed -i 's/ADMIN_USER="admin"/ADMIN_USER="dummy-admin"/g' vars.sh + # Ignore user-specific scripts for GitHub runners + sed -i 's/add_users.sh//g' scripts/run_order.txt + sed -i 's/copy_admin_scripts.sh//g' scripts/run_order.txt - name: Run the scripts run: |