-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.02 KB
/
quality_check.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
name: Quality Check
on:
push:
pull_request:
branches: [main]
jobs:
quality_check:
name: Quality Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
components: clippy, rustfmt
- name: Check Code Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Check Clippy Recommendations
uses: actions-rs/cargo@v1
with:
command: clippy
- name: Run Contract Tests
run: make test
- name: Set Up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: adopt
server-id: github
# Will automatically verify ktlint and run tests
- name: Build Kotlin-Tools
run: ./kotlin-tools/gradlew clean build --refresh-dependencies --project-dir ./kotlin-tools