Skip to content

Set workflow permissions #8

Set workflow permissions

Set workflow permissions #8

Workflow file for this run

name: Cargo test & clippy
permissions:
contents: read
pull-requests: write
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
task:
defaults:
run:
working-directory: ./treasure_chest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run clippy
run: cargo clippy --all-features