-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdroneCI.ts
More file actions
41 lines (35 loc) · 679 Bytes
/
droneCI.ts
File metadata and controls
41 lines (35 loc) · 679 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
40
41
import type { Config } from '../types'
const DRONE_TEMPLATE = `kind: pipeline
type: kubernetes
name: CI
trigger:
event:
- pull_request
steps:
- name: lint-and-typecheck
image: node:20.9.0-slim
commands:
- npm i -g @antfu/ni
- nci
- nr lint
- nr typecheck
- name: build
image: node:20.9.0-slim
commands:
- npm i -g @antfu/ni
- nci
- nr build
# TODO: Add more steps here, like "nr test" as you add the tooling for it
`
const droneCI: Config = {
scripts: [],
dependencies: [],
nuxtConfig: {},
files: [
{
path: '.drone.yml',
content: DRONE_TEMPLATE
}
],
}
export default droneCI