Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Add note about archiving. #626

Add note about archiving.

Add note about archiving. #626

Workflow file for this run

name: attestation-service basic build and unit tests
on: [push, pull_request, create]
jobs:
basic_ci:
if: github.event_name == 'pull_request' || github.event_name == 'push'
name: Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- stable
steps:
- name: Code checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install OPA command line tool
run: |
curl -L -o opa https://openpolicyagent.org/downloads/v0.42.2/opa_linux_amd64_static
chmod 755 ./opa && cp opa /usr/local/bin
- name: OPA policy.rego fmt and check
run: |
opa fmt -d ./src/policy_engine/opa/default_policy.rego | awk '{ print } END { if (NR!=0) { print "run `opa fmt -w <path_to_rego>` to fix this"; exit 1 } }'
opa check ./src/policy_engine/opa/default_policy.rego
- name: Install protoc
run: |
sudo apt-get update && sudo apt-get install -y protobuf-compiler libprotobuf-dev
- name: Install Rust toolchain (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: Build
run: |
make
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
- name: Run cargo fmt check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run rust lint check
uses: actions-rs/cargo@v1
with:
command: clippy
# We are getting error in generated code due to derive_partial_eq_without_eq check, so ignore it for now
args: -- -D warnings -A clippy::derive_partial_eq_without_eq