feat: define schedule tasks (#3) #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test rust | |
on: | |
push: | |
paths: | |
- ".github/workflows/test.yml" | |
- "src/**" | |
pull_request: | |
branches: ["main"] | |
path: | |
- ".github/workflows/test.yml" | |
- "src/**" | |
env: | |
RUST_BACKTRACE: 1 | |
CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf tree | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run tests | |
run: cargo test |