Skip to content

Fix most of the tests #52

Fix most of the tests

Fix most of the tests #52

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run compile
- name: Lint
run: npm run lint
if: ${{ startsWith(node-version, '18.') }}

Check failure on line 34 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 34, Col: 13): Unrecognized named-value: 'node-version'. Located at position 12 within expression: startsWith(node-version, '18.')
- name: Test
run: npm test
if: ${{ false }} # Disable testing for now
package:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run compile
- name: Install tree-sitter CLI
run: npm install -g tree-sitter-cli
- name: Build WASM
run: cd server && npm run build-wasm && cd ..
- name: Package Extension
run: npx vsce package
- name: Upload Extension Artifact
uses: actions/upload-artifact@v3
with:
name: scrapscript-lsp-extension
path: "*.vsix"