Try CI with nvm
Some checks failed
CI / test (push) Failing after 11s

This commit is contained in:
2026-02-05 19:58:08 +00:00
parent 52d09622f8
commit 5375831a46

View File

@@ -6,23 +6,22 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Checkout
run: |
git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/terminal-layout-sync.git repo
cd repo
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/terminal-layout-sync.git .
- name: Setup Node.js
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 18
nvm use 18
node -v
- name: Install
run: npm ci
working-directory: repo
- name: Lint
run: npm run lint
working-directory: repo
- name: Typecheck
run: npm run typecheck
working-directory: repo
- name: Test
run: npm test
working-directory: repo