feat: add example for having linked-list #40
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: | |
jobs: | |
cargo: | |
name: cargo | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{ matrix.projects }} | |
strategy: | |
matrix: | |
projects: | |
- phonebook | |
- rds | |
- word-count-parham | |
- recho | |
- data-in-depth | |
- elipu | |
steps: | |
- name: checkout sources | |
uses: actions/checkout@v3 | |
- name: install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: run cargo fmt | |
run: cargo fmt --all -- --check | |
- name: run cargo clippy | |
run: cargo clippy -- -D warnings | |
- run: | | |
if [ -f docker-compose.yml ]; then | |
docker-compose up -d | |
fi | |
- run: cargo test |