From 5e48dabbaca165e1dcedc75de57d928592fa1884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oc=C3=A9an?= <46847941+oc8@users.noreply.github.com> Date: Wed, 20 Mar 2024 11:06:04 +0100 Subject: [PATCH] fix 'invalid value workflow reference: no version specified' --- .github/workflows/ci.yml | 27 ++++++++++++++++++++++++++- actions/ci.yml | 31 ------------------------------- 2 files changed, 26 insertions(+), 32 deletions(-) delete mode 100644 actions/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60b9101cd5..6c7bfefb01 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,31 @@ name: Synpase on: pull_request: +env: + NODE_VERSION: 20.11.0 + PNPM_VERSION: 8 + PNPM_CACHE: + jobs: ci: - uses: ./actions/ci.yml + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install pnpm ${{ env.PNPM_VERSION }} + uses: pnpm/action-setup@v2 + with: + version: ${{ env.PNPM_VERSION }} + + - name: Install node ${{ env.NODE_VERSION }} + uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_VERSION }} + cache: '${{ env.NODE_CACHE }}' + - run: corepack enable + - name: install dependency + run: pnpm install --frozen-lockfile + - name: lint test + run: pnpm lint + - name: run test + run: pnpm test diff --git a/actions/ci.yml b/actions/ci.yml deleted file mode 100644 index 9e434092e6..0000000000 --- a/actions/ci.yml +++ /dev/null @@ -1,31 +0,0 @@ -env: - NODE_VERSION: 20.11.0 - PNPM_VERSION: 8 - PNPM_CACHE: - -on: - workflow_call: - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Install pnpm ${{ env.PNPM_VERSION }} - uses: pnpm/action-setup@v2 - with: - version: ${{ env.PNPM_VERSION }} - - - name: Install node ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 - with: - node-version: ${{ env.NODE_VERSION }} - cache: '${{ env.NODE_CACHE }}' - - run: corepack enable - - name: install dependency - run: pnpm install --frozen-lockfile - - name: lint test - run: pnpm lint - - name: run test - run: pnpm test