Skip to content

Update main.yml

Update main.yml #491

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
inputs:
branch:
description: 'Branch to run the workflow'
default: 'custom-branch'
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20.x'
- run: npm install
- name: Run eslint
run: npm run eslint
- name: Run tests
run: npm test