-
-
Notifications
You must be signed in to change notification settings - Fork 39
50 lines (46 loc) · 1.53 KB
/
test-javascript.yml
File metadata and controls
50 lines (46 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: test-javascript
permissions: {}
on:
push:
branches:
- main
- renovate/**
pull_request:
branches:
- main
jobs:
test-javascript:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
node-version: ['24.x']
steps:
- name: set git core.autocrlf to 'input'
run: git config --global core.autocrlf input
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- uses: mymindstorm/setup-emsdk@4528d102f7230f0e7b276855c01ea1159be0e984 # v16
if: ${{ matrix.os != 'windows-latest' }}
with:
# See https://github.com/tree-sitter/tree-sitter/blob/v0.24.6/cli/loader/emscripten-version
# (choose the Git tag that corresponds to the version of web-tree-sitter specified in package.json)
# Should be kept in sync with .github/workflows/release-npm.yml
version: 3.1.64
- name: with Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: package-lock.json
- run: npm ci
if: ${{ matrix.os != 'windows-latest' }}
- run: npm ci --no-optional
if: ${{ matrix.os == 'windows-latest' }}
- run: npm test
- run: npm run eslint