mirror of
https://github.com/zellij-org/zellij.git
synced 2024-12-19 15:21:43 +03:00
ed4fd2a8e7
* tests(integration): move basic integration tests to be unit tests * fix(tests): silently fail threadbus for tests * tests(unit): move compatibility tests to become unit tests for grid * tests(unit): move close_pane tests to become unit tests for grid * tests(e2e): move basic layout test to e2e * tests(unit): move move_focus tests to be unit tests * tests(unit): move resize_down tests to be unit tests * tests(unit): move resize_left tests to be unit tests * tests(unit): move resize_right tests to be unit tests * tests(unit): move resize_up tests to be unit tests * tests(infra): remove unused infra * style(fmt): make rustfmt happy * debug * debug * debug * debug * chore(test): shift volume mounting around because github actions is a special child
55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
name: End to End tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
name: Bulild generic binary and run tests on it
|
|
runs-on: ubuntu-latest
|
|
|
|
services:
|
|
ssh:
|
|
image: ghcr.io/linuxserver/openssh-server
|
|
env:
|
|
PUID: 1000
|
|
PGID: 1000
|
|
TZ: Europe/Vienna
|
|
PASSWORD_ACCESS: true
|
|
USER_PASSWORD: test
|
|
USER_NAME: test
|
|
ports:
|
|
- 2222:2222
|
|
options: -v ${{ github.workspace }}/target:/usr/src/zellij --name ssh
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Add WASM target
|
|
run: rustup target add wasm32-wasi
|
|
- name: Install musl-tools
|
|
run: sudo apt-get install -y --no-install-recommends musl-tools
|
|
- name: Add musl target
|
|
run: rustup target add x86_64-unknown-linux-musl
|
|
- name: Install cargo-make
|
|
run: cargo install --debug cargo-make
|
|
- name: Build asset
|
|
run: cargo make build-e2e
|
|
# 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
|
|
uses: docker://docker
|
|
with:
|
|
args: docker restart ssh
|
|
- name: Test
|
|
run: cargo make e2e-test
|