Add actual testing of the changes in a PR #298
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / TestInvalid workflow file
|
||
# with: | ||
# manifest-path: test/Cargo.toml |