From 129a55fc3923e555547030a0a572f3d9854dc7c3 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Fri, 9 Aug 2024 09:25:18 -0500 Subject: attempt to fix node CI Signed-off-by: Matt Strapp --- .github/workflows/lint.yml | 2 +- .github/workflows/node.yml | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to '.github') diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5212ba2..1842062 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -45,7 +45,7 @@ jobs: env: # All available variables are described in documentation # https://megalinter.io/configuration/ - VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # Validates all source when push on main, else just the git diff with main. Override with true if you always want to lint all sources + VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} # Validates all source when push on main, else just the git diff with main. Override with true if you always want to lint all sources GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # ADD YOUR CUSTOM ENV VARIABLES HERE OR DEFINE THEM IN A FILE .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY # DISABLE: COPYPASTE,SPELL # Uncomment to disable copy-paste and spell checks diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index a8d8002..90e9b5e 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -33,13 +33,14 @@ jobs: key: ${{ runner.os }}-turbo-${{ github.sha }} restore-keys: | ${{ runner.os }}-turbo- + - name: Install pnpm and dependencies + uses: pnpm/action-setup@v4 + with: + run_install: true - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: "latest" cache: "pnpm" - - name: Install pnpm and dependencies - uses: pnpm/action-setup@v4 - with: - version: 8 - run_install: true + - name: Build and Test + run: pnpm build && pnpm test -- cgit v1.2.3