Skip to content

Update Rust crate serde to v1.0.217 (#499) #2218

Update Rust crate serde to v1.0.217 (#499)

Update Rust crate serde to v1.0.217 (#499) #2218

Workflow file for this run

name: Build & Test
on:
push:
branches:
- "**"
tags-ignore:
- "v*"
pull_request:
branches:
- main
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
rust:
name: Cargo
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Rust
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Build
run: cargo build --verbose
env:
CARGO_INCREMENTAL: "0"
- name: Test
run: cargo test --verbose
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Build docker image
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
with:
context: .
platforms: linux/amd64
push: false
tags: harryzcy/artifact-store:ci
- name: Test docker image
run: |
docker run -d --rm --name artifact-store -p 3001:3001 harryzcy/artifact-store:ci
sleep 5
curl -sSf http://localhost:3001/ping
echo
docker stop artifact-store