-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add github workflow for testing pushes / PRs to main
- Loading branch information
1 parent
1a222a7
commit 3e8ebe8
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install stable toolchain | ||
run: rustup toolchain install stable | ||
|
||
- name: Install libpango | ||
run: sudo apt-get install libpango1.0-dev | ||
|
||
- name: Cache dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Check | ||
run: cargo check | ||
continue-on-error: false | ||
|
||
- name: Build | ||
run: cargo build | ||
continue-on-error: false | ||
|
||
- name: Format | ||
run: cargo fmt --check | ||
|
||
- name: Lint | ||
run: cargo clippy -- -D warnings |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9329,4 +9329,4 @@ pub fn get_icons() -> Vec<[&'static str; 2]> { | |
["", "weather-wind_west"], | ||
["", "weather-windy"], | ||
] | ||
} | ||
} |