Skip to content

Commit

Permalink
Add a workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
m-milek committed Mar 15, 2024
1 parent 282087d commit 44c82e7
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Rust

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

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: xmoods-api

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose


test:
runs-on: ubuntu-latest
needs: build
defaults:
run:
working-directory: xmoods-api

steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose

doc:
runs-on: ubuntu-latest
needs: build
defaults:
run:
working-directory: xmoods-api

steps:
- uses: actions/checkout@v3
- name: Build documentation
run: cargo doc --document-private-items --workspace --no-deps

0 comments on commit 44c82e7

Please sign in to comment.