Skip to content

Commit

Permalink
Merge pull request #4 from theavege/add/github-actions
Browse files Browse the repository at this point in the history
Add/GitHub actions
  • Loading branch information
silvioprog authored Jan 25, 2025
2 parents 1a1ace7 + 3946d44 commit 58e1530
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "monthly"
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: Make

on:
schedule:
- cron: '0 0 1 * *'
push:
branches:
- "**"
pull_request:
branches:
- master
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
matrix:
os:
- ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

- name: Cargo
if: runner.os == 'Linux'
shell: bash
run: |
set -xeuo pipefail
sudo bash -c '
apt-get update
apt-get install -y cargo rust{fmt,-clippy}
' >/dev/null
cargo test --quiet
cargo build --quiet --ignore-rust-version
cargo clippy --quiet --ignore-rust-version
cargo fmt --check --all
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ simplelog = "^0.7"
dotenv = "^0.15"
getopts = "^0.2"
chrono = { version = "^0.4", features = ["serde"] }
nanoid = { git = "https://github.com/nikolay-govorov/nanoid" }
nanoid = "0.4"
base64 = "^0.11"


Expand Down

0 comments on commit 58e1530

Please sign in to comment.