Skip to content

Commit

Permalink
should be ready now
Browse files Browse the repository at this point in the history
  • Loading branch information
neriumrevolta committed Feb 15, 2024
1 parent 6b26564 commit cafb77b
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ name: CI

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
branches: [main]
pull_request_review:
types: [submitted]

jobs:
fmt:
name: cargo fmt
runs-on: ubuntu-latest
container:
container:
image: rust:latest
steps:
- uses: actions/checkout@v3
Expand All @@ -22,7 +20,12 @@ jobs:
check:
name: Check
runs-on: ubuntu-latest
if: github.event.review.state == 'approved'
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
toolchain: [stable-x86_64-unknown-linux-gnu, stable-x86_64-apple-darwin]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -35,7 +38,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable-x86_64-unknown-linux-gnu
toolchain: ${{ matrix.toolchain }}
default: true
override: true
- uses: actions-rs/cargo@v1
Expand All @@ -48,7 +51,12 @@ jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
if: github.event.review.state == 'approved'
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
toolchain: [stable-x86_64-unknown-linux-gnu, stable-x86_64-apple-darwin]
runs-on: ${{ matrix.os }}
services:
postgres:
image: postgres:12
Expand Down Expand Up @@ -77,7 +85,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable-x86_64-unknown-linux-gnu
toolchain: ${{ matrix.toolchain }}
default: true
override: true
- name: Install sqlx-cli
Expand Down

0 comments on commit cafb77b

Please sign in to comment.