Skip to content

Commit

Permalink
feat: Created github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubaryt committed Jan 11, 2025
1 parent 65a3f15 commit 1ba9e9e
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI
on: push

jobs:
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 9.9.0
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: |
ci/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

0 comments on commit 1ba9e9e

Please sign in to comment.