forked from jmug/stoatchat
ci: use custom Revolt.toml for tests
This commit is contained in:
5
.github/workflows/rust.yaml
vendored
5
.github/workflows/rust.yaml
vendored
@@ -31,10 +31,13 @@ jobs:
|
||||
docker-compose -f docker-compose.db.yml up -d
|
||||
|
||||
- name: Copy .env.example
|
||||
if: github.event_name != 'pull_request' && github.ref_name == 'master'
|
||||
run: |
|
||||
cp .env.example .env
|
||||
|
||||
- name: Copy Revolt.test.toml
|
||||
run: |
|
||||
cp Revolt.test.toml Revolt.toml
|
||||
|
||||
- name: Run cargo test
|
||||
uses: actions-rs/cargo@v1
|
||||
env:
|
||||
|
||||
3
Revolt.test.toml
Normal file
3
Revolt.test.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[database]
|
||||
mongodb = "mongodb://localhost"
|
||||
redis = "redis://localhost/"
|
||||
Reference in New Issue
Block a user