-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (40 loc) · 866 Bytes
/
tests.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
44
on:
# Test on PRs for any branch
pull_request:
branches:
- '*'
# Test only pushes to master branch
push:
branches:
- master
schedule:
- cron: '0 0 * * 0' # Midnight of each sunday
name: Tests
permissions:
contents: read
jobs:
tests:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- nightly
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Run cargo test
env:
API_KEY: ${{secrets.HIBP_TEST_KEY}}
uses: actions-rs/cargo@v1
with:
command: test