Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-eiger committed Feb 15, 2024
1 parent b879b91 commit 00f4ce8
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: CI

on:
push:
branches: [main]
pull_request_review:
types: [submitted]
branches:
- '**' # This triggers the workflow on push to any branch
pull_request:
branches:
- '**' # This triggers the workflow on any pull request

jobs:
fmt:
Expand All @@ -20,12 +22,7 @@ jobs:
check:
name: Check
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 }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -38,7 +35,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
toolchain: stable-x86_64-unknown-linux-gnu
default: true
override: true
- uses: actions-rs/cargo@v1
Expand All @@ -51,12 +48,7 @@ jobs:
test:
name: Test Suite
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 }}
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12
Expand Down Expand Up @@ -85,7 +77,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
toolchain: stable-x86_64-unknown-linux-gnu
default: true
override: true
- name: Install sqlx-cli
Expand Down

0 comments on commit 00f4ce8

Please sign in to comment.