Skip to content

CI

CI #209

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule: # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule
- cron: '0 0 * * 0' # at midnight of each sunday
name: CI
jobs:
server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- name: Rust check
run: |
cd pastebin-server
cargo fmt --all -- --check
cargo clippy -- -D warnings
cargo test
cargo build --release
front:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Vue check
run: |
cd pastebin-front
npm ci
npm run build