File: test.yml

package info (click to toggle)
node-codemirror-lang-macaulay2 0.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 340 kB
  • sloc: javascript: 50; makefile: 23
file content (33 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (5)
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
name: tests

on:
  push:
    branches: main
  pull_request:
    branches: main

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
      - name: Check out repository
        uses: actions/checkout@v4

      - name: Set up Node.js
        uses: actions/setup-node@v4
        with:
          node-version: lts/*
          cache: npm

      - name: Install dependencies
        run: npm install

      - name: Lint
        run: npm run lint

      - name: Build the package
        run: npm run build

      - name: Run tests
        run: npm test