Bump crate-ci/typos from 37e2b40f24407ec641ec44d4b81e76a8826b7b84 to bd033903f43a309e5226c11a04457034edefb115 #448
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [pull_request] | |
name: PR Benchmark | |
permissions: | |
contents: read | |
jobs: | |
runBenchmark: | |
name: Run Benchmark | |
runs-on: ubuntu-latest | |
container: | |
image: rust:latest | |
options: --user root | |
# Service containers to run with `runner-job` | |
services: | |
# Label used to access the service container | |
postgres: | |
# Docker Hub image | |
image: postgres | |
# Provide the password for postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: erooster | |
# Set health checks to wait until postgres has started | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
# Maps tcp port 5432 on service container to the host | |
- 5432:5432 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | |
- run: rustup default nightly | |
- uses: Swatinem/rust-cache@81d053bdb0871dcd3f10763c8cc60d0adc41762b | |
- name: Install opendkim | |
run: apt update && apt install -y opendkim-tools | |
- name: Generate dkim-key | |
run: | | |
mkdir -p /etc/erooster/keys | |
cd /etc/erooster/keys | |
opendkim-genkey --domain=example.com --subdomains --testmode | |
- name: Setup Config | |
run: | | |
echo 'tls:' > /etc/erooster/config.yml | |
echo ' key_path: ""' >> /etc/erooster/config.yml | |
echo ' cert_path: ""' >> /etc/erooster/config.yml | |
echo 'mail:' >> /etc/erooster/config.yml | |
echo ' maildir_folders: "./maildir"' >> /etc/erooster/config.yml | |
echo ' hostname: "localhost"' >> /etc/erooster/config.yml | |
echo ' displayname: Erooster' >> /etc/erooster/config.yml | |
echo ' dkim_key_path: /etc/erooster/keys/default.private' >> /etc/erooster/config.yml | |
echo ' dkim_key_selector: default' >> /etc/erooster/config.yml | |
echo 'database:' >> /etc/erooster/config.yml | |
echo ' postgres_url: "postgres://postgres:postgres@postgres/erooster"' >> /etc/erooster/config.yml | |
echo 'webserver:' >> /etc/erooster/config.yml | |
echo ' port: 80' >> /etc/erooster/config.yml | |
echo ' tls: false' >> /etc/erooster/config.yml | |
- uses: boa-dev/criterion-compare-action@adfd3a94634fe2041ce5613eb7df09d247555b87 | |
with: | |
branchName: ${{ github.base_ref }} | |
token: ${{ github.token }} |