Skip to content

chore: Move CI from travis to GH Actions #1

chore: Move CI from travis to GH Actions

chore: Move CI from travis to GH Actions #1

Workflow file for this run

name: Push
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust-version: [stable, beta, nightly]
steps:
- name: Set up Rust
uses: moonrepo/setup-rust@v1
with:
channel: ${{ matrix.rust-version }}
bins: cargo-nextest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install PostgreSQL
run: sudo apt-get install postgresql
- name: Set up PostgreSQL
run: sudo -u postgres psql -c "CREATE DATABASE mydb;"
- name: Build and test
run: cargo nextest run --features diesel-uuid
env:
PG_DATABASE_URL: postgres://postgres@localhost/mydb