Skip to content

ci: workflow to lint repo config #29

ci: workflow to lint repo config

ci: workflow to lint repo config #29

Workflow file for this run

name: PR
on:
pull_request:
jobs:
lint-repo:
uses: "./.github/workflows/lint-repo.yml"

Check failure on line 6 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr.yml

Invalid workflow file

error parsing called workflow ".github/workflows/pr.yml" -> "./.github/workflows/lint-repo.yml" : workflow is not reusable as it is missing a `on.workflow_call` trigger
test:
runs-on: ubuntu-latest
steps:
# setup
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Rust
uses: ./.github/actions/setup
- name: Install more cargo tools
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov,cargo-nextest
# test
- name: Run tests and generate coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info nextest --profile ci
- uses: mikepenz/action-junit-report@v4
if: always()
with:
check_name: test
report_paths: "**/junit.xml"
# lint
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings
name: lint
if: always()
# coverage
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2.2.3
if: always()