name: Rust CI
on:
merge_group:
pull_request:
push:
# We need to explicitly include tags because otherwise when adding
# `branches-ignore` it will only trigger on branches.
tags:
- '*'
branches-ignore:
# Ignore pushes to merge queues.
# We only want to test the merge commit (`merge_group` event), the hashes
# in the push were already tested by the PR checks
- 'gh-readonly-queue/**'
- 'dependabot/**'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Fetch sources
uses: actions/checkout@v5
with:
submodules: recursive
- name: Run tests
uses: frequenz-floss/gh-action-cargo-test@v1.0.0