Skip to content

Commit

Permalink
feat: add github workflow for testing pushes / PRs to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolv-Apneseth authored Feb 9, 2024
1 parent 1a222a7 commit 3e8ebe8
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
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"],
]
}
}

0 comments on commit 3e8ebe8

Please sign in to comment.