Skip to content

Add actual testing of the changes in a PR #298

Add actual testing of the changes in a PR

Add actual testing of the changes in a PR #298

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t test-cargo-deny .
- name: Run list
run: docker run -v ${PWD}/test:/test test-cargo-deny "" "" --manifest-path test/Cargo.toml list
- name: Run check
run: docker run -v ${PWD}/test:/test test-cargo-deny 1.70.0 "" --manifest-path test/Cargo.toml --all-features check
# Ensures the action in the PR still works
test:
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- name: Extract branch name
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- uses: EmbarkStudios/cargo-deny-action@${{ steps.extract_branch.outputs.branch }}

Check failure on line 28 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 28, Col: 15): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.extract_branch.outputs.branch
# with:
# manifest-path: test/Cargo.toml