From cb5d8d510ab0073e7c222b0d5e77bf83cc59392c Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Fri, 15 Nov 2024 11:02:48 +0200 Subject: [PATCH] WIP: work in progress --- .github/workflows/test.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a249c4a..25ff91b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,6 +38,19 @@ jobs: node-version-file: .nvmrc cache: "pnpm" + - uses: pnpm/action-setup@v4.0.0 + - uses: actions/setup-node@v4.1.0 + with: + node-version-file: .nvmrc + cache: "pnpm" + - uses: actions/cache@v4 + with: + path: | + ~/.cache/Cypress + node_modules + key: my-cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + - run: pnpm install + - name: initialize neovim dependencies run: | echo "Initializing neovim dependencies..." @@ -45,20 +58,8 @@ jobs: # execute the lazy installation script and exit right away nvim -u test-setup.lua -c "exit" - - name: Install dependencies - uses: cypress-io/github-action@v6.7.7 - with: - runTests: false - # https://github.com/cypress-io/github-action/blob/bff0ae58f02476fbc4b13229bcaac2767f645b3e/README.md#pnpm-workspaces - - - name: Cypress test - uses: cypress-io/github-action@v6.7.7 - with: - install: false - command: | - # try to work around https://github.com/cypress-io/github-action/issues/1246 for now - pnpm --filter integration-tests exec cypress install - pnpm cy:run + - run: pnpm i + - run: pnpm cy:run - uses: actions/upload-artifact@v4.4.3 # add the line below to store screenshots only on failures