Skip to content

chore(deps): update rust crate redis to 0.23.1 #11

chore(deps): update rust crate redis to 0.23.1

chore(deps): update rust crate redis to 0.23.1 #11

Workflow file for this run

name: Test/Format
env:
SQLX_OFFLINE: true
on:
push:
pull_request:
jobs:
check:
name: Lint, Format, and Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Load Cargo Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-check-${{ matrix.runtime }}-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/cargo@v1
name: Run Formatter
with:
command: fmt
args: --check
- uses: actions-rs/cargo@v1
name: Run Clippy
with:
command: clippy
- name: Generate build ID
id: build_id
run: |
branch=${GITHUB_REF##*/}
sha=${GITHUB_SHA::8}
ts=$(date +%s)
echo "BUILD_ID=${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.build_id.outputs.BUILD_ID }}
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