-
Notifications
You must be signed in to change notification settings - Fork 4
66 lines (63 loc) · 1.95 KB
/
ci.yml
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
name: CI
on:
push:
branches: [main]
paths-ignore:
- '.github/dependabot.yml'
- 'LICENSE'
- '.editorconfig'
- 'README.md'
- '.vscode/**'
pull_request:
paths-ignore:
- '.github/dependabot.yml'
- 'LICENSE'
- '.editorconfig'
- 'README.md'
- '.vscode/**'
jobs:
build:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: '.node-version'
cache: npm
- run: npm ci --ignore-scripts
- run: npm run build
- name: Check no diff for products
run: git add --intent-to-add . && git diff --exit-code
test:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: '.node-version'
cache: npm
- run: npm ci --ignore-scripts
- run: npm test
typecheck:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: '.node-version'
cache: npm
- run: npm ci --ignore-scripts
- name: Typecheck
run: npm run typecheck
lint:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba # v1.1.4
with:
deno-version: '1.41.3' # selfup { "regex": "\\d[^']+", "script": "deno --version | head -n 1 | cut -d ' ' -f 2" }
- run: deno lint