-
-
Notifications
You must be signed in to change notification settings - Fork 2
25 lines (23 loc) · 680 Bytes
/
test.yml
File metadata and controls
25 lines (23 loc) · 680 Bytes
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
name: Test
on: [ push, pull_request ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
crates.io:443
github.com:443
index.crates.io:443
static.crates.io:443
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: cargo test
run: cargo test --workspace --all-features
- name: build
run: cargo build --workspace