Skip to content

Commit

Permalink
Create rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dastansam committed Sep 20, 2023
1 parent e542913 commit d9a6e1e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Rust

on:
push:
branches: [ "ci-cd" ]
pull_request:
branches: [ "ci-cd" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup PostgreSQL
uses: Harmon758/postgresql-action@v1.0.0
with:
# POSTGRES_DB - name for the default database that is created
postgresql db: postgres
# POSTGRES_USER - create the specified user with superuser power
postgresql user: postgres
# POSTGRES_PASSWORD - superuser password
postgresql password: postgres
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

0 comments on commit d9a6e1e

Please sign in to comment.