forked from kata-containers/kata-containers
-
Notifications
You must be signed in to change notification settings - Fork 29
49 lines (37 loc) · 1.01 KB
/
check-samples.yaml
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
# Copyright (c) Microsoft Corporation.
name: Check policy samples
on:
pull_request:
jobs:
check-policy-samples:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install yq
env:
INSTALL_IN_GOPATH: false
run: |
./ci/install_yq.sh
- name: Install Rust
run: |
./tests/install_rust.sh
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH
- name: Install protobuf-compiler
run: |
sudo apt-get -y install protobuf-compiler
- name: Configure containerd
run: |
sudo containerd config default | sudo dd of=/etc/containerd/config.toml
sudo systemctl restart containerd
sudo systemctl is-active containerd
- name: Update policy samples
working-directory: ./src/tools/genpolicy
run: |
python3 update_policy_samples.py
- name: Show diff
run: |
git diff
- name: Check policy samples
run: |
git diff-files --exit-code