forked from remotestorage/remotestorage.js
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.05 KB
/
test-and-lint.yml
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
name: test-and-lint
on:
push:
branches: [ master, stable ]
pull_request:
branches: [ master, stable ]
# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:
jobs:
build:
name: node.js
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
# Support LTS versions based on https://nodejs.org/en/about/releases/
node-version: ['18', '20']
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci --force
- name: Run jaribu tests # These must be replaced before we can use Node v18 in CI
run: npm test
- name: Run mocha tests
run: npm run test:mocha -- --exit
- name: Lint source code
run: npm run lint:quiet
- name: Lint mocha specs
run: npm run lint:specs:quiet
- name: Run webpack
run: npm run build:release