Skip to content

Commit

Permalink
attempt to upgrade Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Feb 9, 2024
1 parent 5ff3970 commit 2ba94b4
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions .github/workflows/sessions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,17 @@ jobs:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
components: rustfmt
toolchain: stable
override: true

# this is cheaper than requesting the non-minimal profile
- run: rustup component add rustfmt

- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all -- --check

check:
runs-on: ubuntu-latest
Expand All @@ -38,22 +34,19 @@ jobs:
databases: [sqlite-rustls, postgres-rustls, mysql-rustls, redis-db]

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
components: clippy
toolchain: nightly
override: true

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.databases }}

- name: Check
uses: actions-rs/cargo@v1
with:
command: clippy
args: --features ${{ matrix.databases }}
- run: cargo clippy --features ${{ matrix.databases }}

test:
name: Test
Expand All @@ -73,8 +66,8 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: nightly
Expand All @@ -85,8 +78,6 @@ jobs:
- name: Migrate database
run: |
sudo apt-get install libpq-dev -y
- uses: actions-rs/cargo@v1
with:
command: test
args: --features "postgres-rustls"
- run: cargo test --features "postgres-rustls"


0 comments on commit 2ba94b4

Please sign in to comment.