name: test on: push: branches: [main] pull_request: jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Installer Rust run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --component rustfmt,clippy echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Hurtiglager for klimadata og cargo uses: actions/cache@v4 with: path: | ~/.cargo/registry ~/.cargo/git ~/.cache/enok target key: enok-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} restore-keys: enok-${{ runner.os }}- - name: Formatering run: cargo fmt --check - name: Clippy run: cargo clippy --all-targets -- -D warnings - name: Tester run: cargo test --release