Skip to content

try inlining

try inlining #18

Workflow file for this run

name: ci-rust-push
on:
push:
branches:
- 'main'
- 'master'
jobs:
skip-duplicates:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: "same_content_newer"
debug:
runs-on: ubuntu-latest
steps:
- run: echo $GITHUB_WORKSPACE
shell: bash
- run: echo $INPUT_REPOSITORY
shell: bash
- run: echo $INPUT_PATH
shell: bash
- run: echo $INPUT_REF
shell: bash
- run: env
shell: bash
check:
needs: skip-duplicates
if: needs.skip-duplicates.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
if: "${{ secrets.CI_READ != null }}"

Check failure on line 40 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci-rust-push

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 40, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.CI_READ != null .github/workflows/ci.yml (Line: 45, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.CI_READ == null
with:
token: ${{ secrets.CI_READ }}
submodules: recursive
- uses: actions/checkout@v3
if: "${{ secrets.CI_READ == null }}"
with:
submodules: recursive
- uses: ./.github/workflows/actions/checkout
with:
token: ${{ secrets.CI_READ }}
- uses: ./.github/workflows/actions/rust-toolchain
with:
token: ${{ secrets.CI_READ }}
- run: cargo check --all-features
test:
needs: skip-duplicates
if: needs.skip-duplicates.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/actions/checkout
with:
token: ${{ secrets.CI_READ }}
- uses: ./.github/workflows/actions/rust-toolchain
with:
token: ${{ secrets.CI_READ }}
- run: cargo test --all-features
fmt:
needs: skip-duplicates
if: needs.skip-duplicates.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/actions/checkout
with:
token: ${{ secrets.CI_READ }}
- uses: ./.github/workflows/actions/rust-toolchain
with:
token: ${{ secrets.CI_READ }}
toolchain: nightly
- run: rustup component add rustfmt
- run: cargo fmt --all --check
clippy:
needs: skip-duplicates
if: needs.skip-duplicates.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/actions/checkout
with:
token: ${{ secrets.CI_READ }}
- uses: ./.github/workflows/actions/rust-toolchain
with:
token: ${{ secrets.CI_READ }}
- run: rustup component add clippy
- run: cargo clippy --all-features -- --deny warnings
doc:
needs: skip-duplicates
if: needs.skip-duplicates.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/actions/checkout
with:
token: ${{ secrets.CI_READ }}
- uses: ./.github/workflows/actions/rust-toolchain
with:
token: ${{ secrets.CI_READ }}
- run: cargo doc --all-features --no-deps