File tree 1 file changed +5
-12
lines changed
1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -49,23 +49,16 @@ jobs:
49
49
restore-key : |
50
50
${{ runner.os }}-cargo-build-target-${{ env.CURRENT_RUSTC_VERSION }}-
51
51
52
- - name : Prepare the test environment
53
- run : |
54
- prefix=$(pwd)/ignored/prefix
55
- mkdir -p ${prefix}/public-html
56
- echo "::set-env name=CRATESFYI_PREFIX::${prefix}"
57
-
58
52
- name : Launch the postgres image
59
53
run : |
60
- touch .env
54
+ cp .env.sample .env
55
+ . .env
56
+ mkdir -p ${CRATESFYI_PREFIX}/public-html
61
57
docker-compose up -d db
62
- # TODO: try to avoid hard-coding this username/password
63
- export CRATESFYI_DATABASE_URL="postgresql://cratesfyi:password@localhost:5432/"
64
- # Make sure the database is actually working
65
58
# Give the database enough time to start up
66
59
sleep 5
67
- psql "$CRATESFYI_DATABASE_URL"
68
- echo "::set-env name=CRATESFYI_DATABASE_URL:: ${CRATESFYI_DATABASE_URL}"
60
+ # Make sure the database is actually working
61
+ psql " ${CRATESFYI_DATABASE_URL}"
69
62
70
63
- name : Run rustfmt
71
64
run : cargo fmt -- --check
You can’t perform that action at this time.
0 commit comments