-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 863 Bytes
/
test.yaml
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
40
41
name: 📦 Package Test
on:
push:
branches: [master]
paths:
- src/**
- tests/**
issues:
types: [milestoned]
pull_request:
types: [opened, reopened]
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- name: Install yarn package manager
run: npm install yarn --global
- name: Install packages via yarn
run: yarn
- name: Run eslint
run: yarn lint
- name: Run tests
run: yarn test base.test.ts
env:
API_KEY: ${{ secrets.capmonster_api_key }}