1+ name : PR feedback
12on :
23 pull_request :
3- push :
4- branches :
5- - main
6- - try/**
7-
8- name : Checks & Tests
94
105jobs :
11- check :
6+ clippy :
127 strategy :
138 matrix :
14- platform :
15- - ubuntu
16- - windows
17- - macos
9+ include :
10+ - platform : macos
11+ - platform : ubuntu
12+ - platform : windows
1813
19- name : Test on ${{ matrix.platform }}
14+ name : Clippy on ${{ matrix.platform }}
2015 runs-on : " ${{ matrix.platform }}-latest"
2116
2217 steps :
@@ -25,60 +20,55 @@ jobs:
2520 with :
2621 profile : minimal
2722 toolchain : stable
28- override : true
23+ default : true
24+
2925 - run : rustup component add clippy
3026 - uses : actions-rs/cargo@v1
3127 with :
32- command : check
33- - uses : actions-rs/cargo@v1
34- with :
35- command : check
36- args : --features windows-console
37- # check to make sure it keeps compiling, but this is unsupported buggy code for now
28+ command : clippy
3829
39- - uses : actions-rs/cargo@v1
40- if : matrix.platform != 'windows'
41- with :
42- command : test
43- - if : matrix.platform == 'windows'
44- shell : powershell
45- run : cargo test --doc
46- - if : matrix.platform == 'windows'
47- shell : powershell
48- run : cargo test --test platformed terminfo
49- - if : matrix.platform == 'windows'
50- shell : powershell
51- run : cargo test --test platformed xterm
52- - if : matrix.platform == 'windows'
53- shell : powershell
54- run : cargo test --test platformed tput
55- - if : matrix.platform == 'windows'
56- shell : powershell
57- run : cargo test --test platformed windows_cls
58- # I've absolutely tested the windows_vt things LOCALLY but they DON'T WORK IN CI
59- # I don't know why and at this point I'm very very tired. If you know, help pls.
60- - if : matrix.platform == 'windows'
61- shell : powershell
62- run : cargo test --test platformed vt_ris
63- - if : matrix.platform == 'windows'
64- shell : powershell
65- run : cd tests/win10; cargo run
30+ fmt-check :
31+ name : Check formatting
32+ runs-on : ubuntu-latest
6633
34+ steps :
35+ - uses : actions/checkout@v2
36+ - uses : actions-rs/toolchain@v1
37+ with :
38+ profile : minimal
39+ toolchain : stable
40+ override : true
6741 - uses : actions-rs/cargo@v1
6842 with :
69- command : clippy
43+ command : fmt
44+ args : --check
45+
46+ windows-console :
47+ name : Check windows-console feature compiles
48+ runs-on : windows-latest
7049
71- msrv :
72- name : Check on MSRV
73- runs-on : ubuntu-latest
7450 steps :
7551 - uses : actions/checkout@v2
7652 - uses : actions-rs/toolchain@v1
7753 with :
7854 profile : minimal
79- toolchain : 1.51.0
55+ toolchain : stable
8056 override : true
8157 - uses : actions-rs/cargo@v1
8258 with :
8359 command : check
60+ args : --features windows-console
61+ # check to make sure it keeps compiling, but this is unsupported buggy code for now
8462
63+ windows-tests-msrv :
64+ name : Check windows-10 tests compile on MSRV
65+ runs-on : windows-latest
66+
67+ steps :
68+ - uses : actions/checkout@v2
69+ - uses : actions-rs/toolchain@v1
70+ with :
71+ profile : minimal
72+ toolchain : 1.51.0
73+ override : true
74+ - run : cd tests/win10; cargo check
0 commit comments