Skip to content

Increase accuracy

Increase accuracy #3

Workflow file for this run

name: develop
on:
push:
branches:
- "develop"
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install toolchain
run: rustup toolchain install stable
- name: Install clippy
run: rustup component add clippy
- name: Run clippy
run: |
cd backend-rust
cargo clippy --all-targets --all-features -- -D warnings
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
cd backend-rust
./download_test_data.sh
cargo test --all-targets
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build docker image
uses: docker/build-push-action@v4
with:
push: true
tags: hoff97/hikeandfly:develop
cache-from: type=registry,ref=hoff97/hikeandfly:develop
cache-to: type=inline