Milestone 2 #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
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 | |
working-directory: ./pcidss | |
run: cargo build --verbose | |
- name: Run tests | |
working-directory: ./pcidss | |
run: cargo test --verbose |