Bump tempfile from 3.23.0 to 3.24.0 #838
Workflow file for this run
This file contains hidden or 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
| on: [push, pull_request] | |
| name: CI | |
| jobs: | |
| test: | |
| name: Cortex | |
| runs-on: ubuntu-latest | |
| env: | |
| DB_HOST: localhost | |
| DB_USERNAME: postgres | |
| PGPASSWORD: postgres | |
| DATABASE_URL: "postgres://cortex_tester:cortex_tester@localhost/cortex_tester" | |
| steps: | |
| - name: Install CorTeX Dependencies | |
| uses: ryankurte/action-apt@v0.2.0 | |
| with: | |
| packages: "postgresql postgresql-contrib postgresql-client libpq-dev libarchive-dev libsodium-dev libzmq3-dev" | |
| - name: Start PostgreSQL on Ubuntu | |
| run: | | |
| sudo systemctl start postgresql.service | |
| - name: Setup Postgresql DB | |
| run: | | |
| sudo -u postgres psql -c 'create database cortex;' | |
| sudo -u postgres psql -c 'create database cortex_tester;' | |
| sudo -u postgres psql -c "create user cortex with password 'cortex';" | |
| sudo -u postgres psql -c "create user cortex_tester with password 'cortex_tester';" | |
| sudo -u postgres psql -c 'GRANT ALL PRIVILEGES ON SCHEMA public TO postgres;' | |
| sudo -u postgres psql -c 'GRANT ALL PRIVILEGES ON SCHEMA public TO cortex;' | |
| sudo -u postgres psql -c 'GRANT ALL PRIVILEGES ON SCHEMA public TO cortex_tester;' | |
| sudo -u postgres psql -c 'ALTER DATABASE cortex OWNER TO cortex;' | |
| sudo -u postgres psql -c 'ALTER DATABASE cortex_tester OWNER TO cortex_tester;' | |
| sudo -u postgres psql -c 'GRANT ALL PRIVILEGES ON DATABASE cortex TO cortex;' | |
| sudo -u postgres psql -c 'GRANT ALL PRIVILEGES ON DATABASE cortex_tester TO cortex_tester;' | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: nightly | |
| override: true | |
| - run: | | |
| cargo install diesel_cli --vers 1.1.2 --no-default-features --features postgres | |
| diesel setup | |
| diesel migration run | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: test |