-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Move CI from travis to GH Actions
- Loading branch information
1 parent
4a4a99e
commit 1c90007
Showing
2 changed files
with
47 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
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] | ||
|
||
services: | ||
postgres: | ||
image: postgres:16.3 | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- 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: Build and test | ||
run: cargo nextest run --features diesel-uuid | ||
env: | ||
PG_DATABASE_URL: postgres://postgres:postgres@localhost/postgres |
This file was deleted.
Oops, something went wrong.