Skip to content

Merge pull request #6 from Teajey/2-sort-by-arbitrary-string-field #17

Merge pull request #6 from Teajey/2-sort-by-arbitrary-string-field

Merge pull request #6 from Teajey/2-sort-by-arbitrary-string-field #17

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3.2.6
with:
path: |
~/.cargo
target
key: build-${{ runner.os }}
restore-keys: |
build-${{ runner.os }}
- run: cargo build
lint:
needs: build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3.2.6
with:
path: |
~/.cargo
target
key: build-${{ runner.os }}
restore-keys: |
build-${{ runner.os }}
- run: cargo clippy --all-targets
test:
needs: build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3.2.6
with:
path: |
~/.cargo
target
key: build-${{ runner.os }}
restore-keys: |
build-${{ runner.os }}
- run: cargo test