Skip to content

chore(deps): update rust crate redis to 0.23.2 #23

chore(deps): update rust crate redis to 0.23.2

chore(deps): update rust crate redis to 0.23.2 #23

Workflow file for this run

name: Tests
env:
SQLX_OFFLINE: true
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check:
name: Lint, Format, and Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- uses: r7kamura/rust-problem-matchers@v1
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Run Formatter
run: cargo fmt --check
- name: Run Clippy
run: cargo clippy
- name: Generate build tag
id: generate_tag
run: |
branch=${GITHUB_REF##*/}
sha=${GITHUB_SHA::8}
ts=$(date +%s)
echo "tag=${branch}.${ts}-${sha}" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build
uses: docker/build-push-action@v4
with:
context: .
file: ./chuckle/Dockerfile
push: false
tags: ${{ steps.generate_tag.outputs.tag }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
# Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache