Skip to content

release/nanocl: 0.16.1-nightly #538

release/nanocl: 0.16.1-nightly

release/nanocl: 0.16.1-nightly #538

Workflow file for this run

name: E2E Tests
on:
push:
branches: ["nightly"]
pull_request:
branches: ["nightly"]
workflow_dispatch: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/nightly' }}
env:
CARGO_TERM_COLOR: always
jobs:
ubuntu_e2e_test:
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
# Clone project
- uses: actions/checkout@v4
# Install buildx
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
# Set buildx cache
- name: Cache register
uses: actions/cache@v4
with:
path: ~/buildx-cache
key: buildx-cache
# Install cargo make
- uses: davidB/rust-cargo-make@v1
- name: Install bats
run: |
sudo apt-get update
sudo apt-get install -y bats
# Build nightly image and install nanocl
- name: Prepare CI
run: |
sh ./scripts/build_images.sh
NANOCL_CHANNEL=nightly cargo build --release --bin nanocl
sudo cp target/release/nanocl /usr/bin/nanocl
sudo chmod +x /usr/bin/nanocl
sudo groupadd nanocl
sudo usermod -aG nanocl $USER
newgrp nanocl
nanocl install -t installer.yml
sleep 20
docker ps -a
docker logs ndaemon.system.c
sudo chmod -R 777 /var/lib/nanocl
sudo chmod -R 777 /run/nanocl
nanocl version
# Run E2E tests
- name: E2E
run: |
bats ./tests/e2e.bats