Skip to content

Merge pull request #1188 from morerunes/main #3201

Merge pull request #1188 from morerunes/main

Merge pull request #1188 from morerunes/main #3201

Workflow file for this run

---
name: CI
on: [ push, pull_request ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
experimental: [false]
rust:
- stable
- beta
include:
- rust: nightly
experimental: true
steps:
- name: install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Checkout sources
uses: actions/checkout@v4
- name: Install rust (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }}
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose ${{ matrix.features }}
doc:
name: Build documentation
runs-on: ubuntu-latest
steps:
- name: install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Checkout sources
uses: actions/checkout@v4
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: doc
args: --verbose
dockerhub:
name: Docker build and push to Docker Hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: .
push: 'true'
tags: clevercloud/sozu:${{ github.sha }}
...