Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Test cargo-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tjardoo committed Jan 9, 2024
1 parent 3e85c42 commit 0ade058
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/cargo-build.yml
@@ -1,4 +1,4 @@
name: Rust
name: "Cargo Build"

on:
push:
Expand All @@ -16,5 +16,23 @@ jobs:

steps:
- uses: actions/checkout@v3

services:
mysql:
image: mysql:latest
env:
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: openai_chat_testing
DATABASE_URL: mysql://root:password@127.0.0.1:3000/openai_chat_testing
ports:
- 3306:3306

- name: Setup database
run: sqlx migrate run

- name: Copy .env
run: cp .env.example .env

- name: Build
run: cargo build --verbose

0 comments on commit 0ade058

Please sign in to comment.