mirror of
https://github.com/filegator/filegator.git
synced 2025-09-02 20:32:38 +02:00
31 lines
644 B
YAML
31 lines
644 B
YAML
name: Node
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Cypress dependencies
|
|
run: sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libnotify-dev libnss3 libxss1 libxtst6 xauth xvfb
|
|
|
|
- name: npm install, build, and test
|
|
run: |
|
|
npm install
|
|
npm run lint
|
|
npm run test:e2e
|