Skip to content

Commit

Permalink
GitHub stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Piturnah committed Jan 30, 2024
1 parent d954ecb commit 9bfbe00
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ko_fi: piturnah
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "cargo"
directory: "/server"
schedule:
interval: "weekly"
commit-message:
prefix: "chore(deps): "

- package-ecosystem: "npm"
directory: "/client"
schedule:
interval: "weekly"
commit-message:
prefix: "chore(deps): "
68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI

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

env:
CARGO_TERM_COLOR: always

jobs:
Test (server):
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- run: cd server
- name: Test
run: cargo test

Lint (server):
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy, rustfmt
override: true
- run: cd server
- name: Clippy
run: cargo clippy -- -D warnings
- name: Format
run: cargo fmt --check

Build (client):
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: cd client
- name: Install dependencies
run: npm install
- name: Build
run: npm run build

Lint (client):
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: cd client
- name: Install dependencies
run: npm install
- name: Lint
run: npx prettier .

0 comments on commit 9bfbe00

Please sign in to comment.