Skip to content

Commit

Permalink
ci: update everything (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz authored Apr 22, 2024
1 parent 1bd5a4f commit f524102
Show file tree
Hide file tree
Showing 5 changed files with 246 additions and 101 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ updates:
rust:
patterns:
- "*"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
commit-message:
prefix: "ci"
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build

on:
push:
branches: ["master"]
branches: [master, main]
pull_request:
branches: ["master"]
branches: [master, main]

env:
CARGO_TERM_COLOR: always
Expand All @@ -13,10 +13,13 @@ jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy
- name: Rust cache
run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build
- name: Run clippy
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Formatting

on:
push:
branches: ["master"]
branches: [master, main]
pull_request:
branches: ["master"]
branches: [master, main]

env:
CARGO_TERM_COLOR: always
Expand All @@ -14,12 +14,11 @@ jobs:
name: Check Formatting (Rust)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
override: true
toolchain: nightly
components: clippy
- run: rustup component add rustfmt
- name: rustfmt
run: cargo fmt --check
Expand All @@ -28,9 +27,8 @@ jobs:
name: Check Formatting (Prettier)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check formatting with Prettier
# Explicit commit, because this isn't tagged yet.
uses: Nerixyz/actionsx-prettier@7bf11fa7899e9d9628cb326987e8f0fcf35ab1e3
uses: actionsx/prettier@v3
with:
args: -c .
Loading

0 comments on commit f524102

Please sign in to comment.