Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add github workflow for testing pushes / PRs to main #3

Merged
merged 4 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
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
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ update-nerd:

output_file.write(f""" ["{char}", "{key}"],\n""")

output_file.write(" ]\n}")
output_file.write(" ]\n}\n")

# Build
build:
Expand Down
2 changes: 1 addition & 1 deletion src/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9329,4 +9329,4 @@ pub fn get_icons() -> Vec<[&'static str; 2]> {
["", "weather-wind_west"],
["", "weather-windy"],
]
}
}
Loading