ci: add missing predefined values #54
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lychee_links: | |
name: Broken URL Checking | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Run lychee | |
uses: lycheeverse/lychee-action@v1.9.3 | |
with: | |
fail: true | |
spelling: | |
name: Spell Checking | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: typos | |
uses: crate-ci/typos@master | |
conventional_commits: | |
name: Conventional Commit Checking | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
- name: cocogitto check | |
uses: oknozor/cocogitto-action@v3 | |
expand_template: | |
name: Expand Template | |
runs-on: tamasfe/taplo:0.8.0 | |
env: | |
PROJECT_NAME: basic-tests | |
CARGO_GENERATE_VALUE_CI: true | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Expand template | |
uses: cargo-generate/cargo-generate-action@latest | |
with: | |
name: ${{ env.PROJECT_NAME }} | |
arguments: >- | |
--define=license="MIT" | |
--define=include_mdbook=true | |
--define=mdbook_pages_url=XXX | |
--define=include_security_policy=true | |
--define=include_precommit=true | |
--define=include_codecov=false | |
--define=codecov_graph_token=XXX | |
--define=architecture_url=XXX | |
--define=repository_path=XXX | |
- name: Build setup | |
uses: ./.github/actions/build_setup | |
- run: | | |
mv $PROJECT_NAME ${{ runner.temp }}/ | |
cd ${{ runner.temp }}/$PROJECT_NAME | |
# IMPROVEMENT: add more tests / CI steps | |
cargo check | |
taplo fmt --check --diff |