Skip to content

Update swagger-ui to v5.5.0 (#84) #229

Update swagger-ui to v5.5.0 (#84)

Update swagger-ui to v5.5.0 (#84) #229

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
push:
workflow_dispatch:
env:
CLICOLOR_FORCE: 1
CARGO_TERM_COLOR: always
RUST_BACKTRACE: all
jobs:
prerequisites:
name: CI prerequisites
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
rust: [stable]
#, beta, nightly, 1.56.0
os: [ubuntu-latest]
#, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- uses: davidB/rust-cargo-make@v1
- name: Install OpenAPI Generator
if: matrix.os == 'ubuntu-latest'
uses: actions-rs/cargo@v1
with:
command: make
args: install-openapi
- uses: actions-rs/cargo@v1
with: { command: generate-lockfile }
- uses: Swatinem/rust-cache@v1
- name: Cache OpenAPI Generator
uses: actions/cache@v3
with:
path: |
~/.local/bin/openapi-generator
key: ${{ runner.os }}-openapi-generator-${{ steps.rust_toolchain.outputs.rustc_hash }}-${{ hashFiles('~/.local/bin/openapi-generator') }}
# - name: CI flow
# if: github.ref == 'refs/heads/main' && (matrix.rust == 'stable' || matrix.rust == 'beta')
# uses: actions-rs/cargo@v1
# with:
# command: make
# args: ci-flow
- name: Build
# if: github.ref != 'refs/heads/main' && (matrix.rust == 'stable' || matrix.rust == 'beta')
uses: actions-rs/cargo@v1
with:
command: make
args: build
- name: Test
# if: github.ref != 'refs/heads/main' && (matrix.rust == 'stable' || matrix.rust == 'beta')
uses: actions-rs/cargo@v1
with:
command: make
args: test