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