-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (57 loc) · 1.11 KB
/
tests.yml
File metadata and controls
59 lines (57 loc) · 1.11 KB
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
56
57
58
59
name: Windows - Tests
permissions:
contents: write
on:
push:
paths-ignore:
- ".vscode/**"
- "README.md"
branches:
- main
- dev
pull_request:
branches:
- main
- dev
#
defaults:
run:
shell: bash
#
env:
CARGO_TERM_COLOR: always
#
jobs:
test-windows:
name: Tests on Windows
runs-on: windows-latest
#
steps:
- name: Checkout code
uses: actions/checkout@v4
#
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy
target: x86_64-pc-windows-msvc
default: true
#
- name: Cache Dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: windows-cargo-${{ hashFiles('**/Cargo.lock') }}
#
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose