Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-hagemann committed Nov 28, 2023
1 parent dc8f5e7 commit 1b2e482
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,21 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

- name: Build binary
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features

- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: ratings
path: target/release/ratings

- name: Install cargo-make
run: cargo install cargo-make

- name: Start Database
run: cargo make db-up

- name: Prepare environment file
run: cp example.env .env

- name: Run tests
run: cargo make full-test
# - name: Build binary
# uses: actions-rs/cargo@v1
# with:
# command: build
# args: --release --all-features

# - name: Upload binary
# uses: actions/upload-artifact@v3
# with:
# name: ratings
# path: target/release/ratings

- name: Setup and Run Tests
run: |
cp example.env .env
cargo install cargo-make
cargo make db-up
cargo make full-test

0 comments on commit 1b2e482

Please sign in to comment.