55 lines (45 loc) · 1.21 KB
/
ci.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: 'Stump Checks CI'
on:
pull_request:
push:
branches:
- main
jobs:
check-rust:
if: "!contains(github.event.pull_request.head.ref, 'release/v')"
name: Rust checks
runs-on: [ubuntu-22.04]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup rust
uses: ./.github/actions/setup-rust
- name: Run cargo checks
run: |
cargo fmt --all -- --check
cargo clippy -- -D warnings
# TODO: fix the tests, then uncomment this
# - name: Run tests
# run: |
# cargo integration-tests
check-typescript:
if: "!contains(github.event.pull_request.head.ref, 'release/v')"
name: TypeScript checks
runs-on: [ubuntu-22.04]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: '20.0.0'
- name: Install yarn
shell: bash
run: npm install -g yarn
- uses: actions/setup-node@v4
with:
node-version: '20.0.0'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Run TypeScript lints
run: yarn lint