-
-
Notifications
You must be signed in to change notification settings - Fork 70
43 lines (41 loc) · 1.07 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
name: Continuous integration
on:
push:
branches:
- main
pull_request: {}
jobs:
eslint:
name: eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Read .node-version
id: node-version
run: echo "node-version=$(cat .node-version)" >> $GITHUB_OUTPUT
- name: install node
uses: actions/setup-node@v3
with:
cache: yarn
node-version: ${{ steps.node-version.outputs.node-version }}
- name: yarn install
run: yarn install
- name: yarn run lint
run: yarn run lint
typescript:
name: typescript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Read .node-version
id: node-version
run: echo "node-version=$(cat .node-version)" >> $GITHUB_OUTPUT
- name: install node
uses: actions/setup-node@v3
with:
cache: yarn
node-version: ${{ steps.node-version.outputs.node-version }}
- name: yarn install
run: yarn install
- name: tsc on resulting generated files
run: yarn run tsc --noEmit