aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/lint.yml2
-rw-r--r--.github/workflows/node.yml11
2 files changed, 7 insertions, 6 deletions
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