Skip to content

Bump codecov/codecov-action from 3 to 4 #214

Bump codecov/codecov-action from 3 to 4

Bump codecov/codecov-action from 3 to 4 #214

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [stable]
job:
- crate_type: "bin"
- crate_type: "lib"
env:
PROJECT_NAME: rust-template-generated-${{ matrix.job.crate_type }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@v2
with:
tool: cargo-udeps,cargo-sync-rdme,cargo-generate
- run: rustup toolchain add nightly --profile minimal
shell: bash
- run: cargo generate --name "${{ env.PROJECT_NAME }}" --path "template" --template-values-file tests/template_values.toml --${{matrix.job.crate_type}} --allow-commands
shell: bash
- name: Cargo check
run: |
cd "${PROJECT_NAME}"
../tests/scripts/run_cargo_tests "${{ matrix.job.crate_type }}"
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check workflow files
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
echo "::add-matcher::.github/actionlint-matcher.json"
./actionlint -color
shell: bash