Skip to content

Bump azure/setup-helm from 3.5 to 4 #8

Bump azure/setup-helm from 3.5 to 4

Bump azure/setup-helm from 3.5 to 4 #8

Workflow file for this run

name: Backend Code
on:
push:
pull_request:
jobs:
lint:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
services:
ispyb:
image: ghcr.io/diamondlightsource/ispyb-database:v3.0.0
ports:
- 3306:3306
env:
MARIADB_ROOT_PASSWORD: rootpassword
options: >
--health-cmd "/usr/local/bin/healthcheck.sh --defaults-file=/ispyb/.my.cnf --connect"
env:
DATABASE_URL: mysql://root:rootpassword@localhost/ispyb_build
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Install dependencies
uses: awalsh128/[email protected]
with:
packages: libopencv-dev clang libclang-dev
- name: Install stable toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
default: true
- name: Cache Rust Build
uses: Swatinem/[email protected]
- name: Create models lib file
run: |
mkdir models/src
printf "\n" > models/src/lib.rs
- name: Check Formatting
uses: actions-rs/[email protected]
with:
command: fmt
args: >
--all
--check
- name: Lint with Clippy
uses: actions-rs/[email protected]
with:
command: clippy
args: >
--no-deps
--all-targets
--all-features
--
--deny warnings
test:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
services:
ispyb:
image: ghcr.io/diamondlightsource/ispyb-database:v3.0.0
ports:
- 3306:3306
env:
MARIADB_ROOT_PASSWORD: rootpassword
options: >
--health-cmd "/usr/local/bin/healthcheck.sh --defaults-file=/ispyb/.my.cnf --connect"
env:
DATABASE_URL: mysql://root:rootpassword@localhost/ispyb_build
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Install dependencies
uses: awalsh128/[email protected]
with:
packages: libopencv-dev clang libclang-dev
- name: Install stable toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
default: true
- name: Cache Rust Build
uses: Swatinem/[email protected]
- name: Test
uses: actions-rs/[email protected]
with:
command: test
args: >
--all-targets
--all-features