Skip to content

feat: Created github workflows #3

feat: Created github workflows

feat: Created github workflows #3

Workflow file for this run

name: CI
on: push
jobs:
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.2
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: 'Create env file'
run: |
touch .env
echo DATABASE_URL=postgres://backend:password@localhost:5432/hack4krak >> .env
- name: 'Install dependencies'
run: |
pnpm install
cd frontend
pnpm install
cd ..
- run: |
pnpm test
pnpm frontend:lint
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust (rustup)
run: |
.github.workflows/install-rust.sh stable ${{ runner.os }}
rustup update stable --no-self-update && rustup default stable
- name: Install dependencies
run: |
cd backend/
cargo install
cd ..
- name: 'Create env file'
run: |
touch .env
echo DATABASE_URL=postgres://backend:password@localhost:5432/hack4krak >> .env
- run: |
cd backend/
cargo test
cargo fmt && cargo clippy