Skip to content

Merge pull request #59 from streamfold/bump-rotel-for-v34 #176

Merge pull request #59 from streamfold/bump-rotel-for-v34

Merge pull request #59 from streamfold/bump-rotel-for-v34 #176

Workflow file for this run

name: CI
on:
push:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: test - ${{ matrix.target }}
strategy:
fail-fast: true
matrix:
include:
- target: x86_64-unknown-linux-gnu
runner: ubuntu-latest
os: ubuntu
# - target: aarch64-unknown-linux-gnu
# runner: ubuntu-24.04-arm
# os: ubuntu
runs-on: ${{ matrix.runner }}
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: update apt cache
run: sudo apt-get update
- name: install protoc
run: sudo apt-get install -y protobuf-compiler
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.target }}
rustflags: ""
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_LAMBDA_CI_ROLE_ARN }}
aws-region: us-east-1
- name: run test
env:
TEST_SECRETSMANAGER_ARNS: ${{ secrets.TEST_SECRETSMANAGER_ARNS }}
TEST_PARAMSTORE_ARNS: ${{ secrets.TEST_PARAMSTORE_ARNS }}
TEST_ENVSECRET_ARNS: ${{ secrets.TEST_ENVSECRET_ARNS }}
run: |
cargo test --target ${{ matrix.target }} --verbose
# Check formatting with rustfmt
formatting:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Ensure rustfmt is installed and setup problem matcher
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
rustflags: ""
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1