-
Notifications
You must be signed in to change notification settings - Fork 20
54 lines (51 loc) · 1.45 KB
/
pull-requests.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
45
46
47
48
49
50
51
52
53
54
name: ⏮️ Pull Requests
on:
pull_request_target:
types:
- opened
- edited
- synchronize
merge_group:
jobs:
validate_title:
name: 🕵 Validate Conventional PR Title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
name: 🔎 Validate Conventional PR Title
if: github.event_name == 'pull_request_target'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
miri_tests:
runs-on: ubuntu-latest
name: 📡 Miri tests ( PR )
steps:
- uses: actions/checkout@v3
- name: 🧰 Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y -q \
libasound2-dev \
libudev-dev
- name: 🧰 Install Miri
run: |
rustup toolchain install nightly --component miri
rustup override set nightly
cargo miri setup
- name: ♻️ Cache Cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
web-target/
key: ci-miri-${{ matrix.config.target }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
ci-miri-${{ matrix.config.target }}-
- name: 📡 Test with Miri
shell: bash
run: "${GITHUB_WORKSPACE}/.github/miri-test.sh"
env:
NUM_SEEDS: 1