Skip to content

chore(release): v26.10.1 #86

chore(release): v26.10.1

chore(release): v26.10.1 #86

Workflow file for this run

name: End to End tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: e2e-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
CARGO_TERM_COLOR: always
jobs:
test-e2e:
name: Build generic binary and run tests on it
runs-on: ubuntu-latest
timeout-minutes: 30
services:
ssh:
image: lscr.io/linuxserver/openssh-server:latest
env:
PUID: 1001
PGID: 1000
TZ: Europe/Vienna
PASSWORD_ACCESS: true
USER_PASSWORD: test
USER_NAME: test
ports:
- 2222:2222
options: -v ${{ github.workspace }}/target:/usr/src/flock --name ssh
steps:
- uses: actions/checkout@v7
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install musl-tools
run: sudo apt-get install -y --no-install-recommends musl-tools
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""
- name: Create target folder
run: mkdir -p ${{ github.workspace }}/target
# we copy this manually into the target folder instead of mounting it because
# github actions creates the service first, and if it has a mount that is part
# of your yet unchecked out code, you cannot checkout the code after the mount
- name: Copy fixtures folder to target
run: cp -r ${{ github.workspace }}/src/tests/fixtures ${{ github.workspace }}/target
- name: Restart ssh container
# we need to do this because otherwise the volume will not be mounted
# on the docker container, since it was created before the folder existed
run: docker restart ssh
- name: Test
run: cargo xtask ci e2e --test