forked from cgwire/kitsu
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 895 Bytes
/
Copy pathci.yml
File metadata and controls
39 lines (37 loc) · 895 Bytes
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
---
name: 'Kitsu CI'
on: [push, pull_request]
jobs:
ci:
name: Test with Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [20, 22, 24, current]
env:
NODE_OPTIONS: '--max_old_space_size=8192'
HUSKY: 0
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install npm dependencies
run: |
echo "Node.js $(node -v)"
echo "npm v$(npm -v)"
npm ci
- name: Run linter
if: ${{ matrix.node == 'current' }}
env:
NODE_ENV: production
run: |
npm run lint -- --quiet
- name: Run tests
run: |
npm run test:unit
- name: Build application
run: |
npm run build