From db070791316c95db53d790b51cc8943e77094d37 Mon Sep 17 00:00:00 2001 From: Giuseppe Scuglia Date: Mon, 16 Dec 2024 15:30:59 +0100 Subject: [PATCH] fix GH action --- .github/action/setup.yml | 28 ---------------------------- .github/workflows/setup.yml | 19 +++++++++++++++++++ .github/workflows/static-checks.yml | 2 +- 3 files changed, 20 insertions(+), 29 deletions(-) delete mode 100644 .github/action/setup.yml create mode 100644 .github/workflows/setup.yml diff --git a/.github/action/setup.yml b/.github/action/setup.yml deleted file mode 100644 index eed0dd7..0000000 --- a/.github/action/setup.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: 'Setup Action' -description: 'Checkouts the repo, sets up node and installs dependencies' - -on: - workflow_call: - -jobs: - setup: - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '22' - - - name: Cache dependencies - id: cache - uses: actions/cache@v4 - with: - path: ./node_modules - key: modules-${{ hashFiles('package-lock.json') }} - - - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' - run: npm ci \ No newline at end of file diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml new file mode 100644 index 0000000..56e611f --- /dev/null +++ b/.github/workflows/setup.yml @@ -0,0 +1,19 @@ +name: "Setup Action" + +on: + workflow_call: + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + + - name: Set up Node.js + uses: actions/setup-node@23755b521f87533c8ed7f8fb13674f9021579e34 # v4 + with: + node-version: "22" + + - name: Install dependencies + run: npm ci diff --git a/.github/workflows/static-checks.yml b/.github/workflows/static-checks.yml index 4565e8f..ba95950 100644 --- a/.github/workflows/static-checks.yml +++ b/.github/workflows/static-checks.yml @@ -11,7 +11,7 @@ on: jobs: setup: name: Setup Dependencies - uses: ./.github/action/setup.yml + uses: ./.github/workflows/setup.yml lint: name: ESLint Check