Skip to content

Commit

Permalink
A lot of code. I am not even going to try to describe a commit message.
Browse files Browse the repository at this point in the history
  • Loading branch information
wyatt-herkamp committed Aug 17, 2024
1 parent 3cc3339 commit b92b22a
Show file tree
Hide file tree
Showing 91 changed files with 14,399 additions and 5,179 deletions.
14 changes: 4 additions & 10 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
backend/target
backend/test/
nrc/
docs/
.idea

log
frontend/node_modules
frontend/dist
frontend/.env
target/
.vscode/
test/
.env
8 changes: 0 additions & 8 deletions .github/dependabot.yml

This file was deleted.

26 changes: 9 additions & 17 deletions .github/workflows/rust-pr.yml → .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
name: Pull Request Rust

name: Backend Push or PR
on:
push:
branches: main
pull_request:
branches: master
branches: main

env:
CARGO_TERM_COLOR: always
jobs:
build:
if: contains(github.event.pull_request.labels.*.name, 'rust')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
working-directory: backend
toolchain: stable
override: true
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
working-directory: backend
command: build
args: --manifest-path backend/Cargo.toml --no-default-features
uses: dtolnay/rust-toolchain@stable
- name: Test
run: cargo test --all
clippy_check:
runs-on: ubuntu-latest
steps:
Expand All @@ -34,4 +26,4 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Yes by doing this we are not checking the feature code. However, it is a small point. And I really dont want to have to run the build script
args: --manifest-path backend/Cargo.toml --no-default-features --no-deps
args: --manifest-path backend/Cargo.toml --no-default-features --no-deps
66 changes: 66 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Sample workflow for building and deploying a VitePress site to GitHub Pages
#
name: Deploy VitePress site to Pages

on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
# using the `master` branch as the default branch.
push:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
# - uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm # or pnpm / yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
working-directory: docs
run: npm ci # or pnpm install / yarn install / bun install
- name: Build with VitePress
working-directory: docs
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/docs/.vitepress/dist

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
21 changes: 21 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Frontend Push or PR

on:
push:
branches: main
pull_request:
branches: main
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: "site/.node-version"
- name: Install Site
working-directory: site
run: npm install && npm run build
21 changes: 0 additions & 21 deletions .github/workflows/javascript-push.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/push.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
target/
.vscode/
test/
test/
.env
Loading

0 comments on commit b92b22a

Please sign in to comment.