forked from MALSync/MALSync
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (67 loc) · 1.7 KB
/
tests.yml
File metadata and controls
67 lines (67 loc) · 1.7 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version: '22.x'
cache: 'npm'
- name: install
run: |
npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: 'true'
- name: Build
run: |
npm run build
env:
CI_MODE: travis
SIMKL_API_ID: test-placeholder
SIMKL_API_SECRET: test-placeholder
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version: '22.x'
cache: 'npm'
- name: install
run: |
npm ci
npm run build:chibiTypes
env:
PUPPETEER_SKIP_DOWNLOAD: 'true'
- name: Lint
run: |
npm run lint:ci
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version: '22.x'
cache: 'npm'
- name: install
run: |
npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: 'true'
- name: Build
run: |
npm run build:webextension:assets
npm run build:chibiTypes
npm run build:webextension:content:build
env:
CI_MODE: travis
SIMKL_API_ID: test-placeholder
SIMKL_API_SECRET: test-placeholder
- name: Tests
run: |
npm run test:ts:ci
env:
NO_API: true