From 6f915678b5dacc03b56c70a65c4cbb44eb641c10 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 7 Nov 2022 23:38:53 +0000 Subject: [PATCH] sudo all run commands Signed-off-by: Arthur Lu --- .github/workflows/js-unittest.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/js-unittest.yml b/.github/workflows/js-unittest.yml index 4833348..9f68ea5 100644 --- a/.github/workflows/js-unittest.yml +++ b/.github/workflows/js-unittest.yml @@ -14,12 +14,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Install apt updates - run: apt -y update; apt -y upgrade; + run: sudo apt -y update; sudo apt -y upgrade; - name: Install prerequisites - run: apt install -y nodejs npm git; + run: sudo apt install -y nodejs npm git; - name: Checkout uses: actions/checkout@v3 - name: Install dependencies - run: npm install + run: sudo npm install - name: Run tests - run: npm test \ No newline at end of file + run: sudo npm test \ No newline at end of file