toggl-bridge/.github/workflows/build.yml
Joshua Coles 2dac06cf8e
All checks were successful
Rust CI / Build and Test (push) Successful in 14m54s
Remove unused steps
2024-08-01 18:34:47 +01:00

47 lines
930 B
YAML

name: Rust CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features