Skip to content

release/ncdns: 0.7.0-nightly (#972) #69

release/ncdns: 0.7.0-nightly (#972)

release/ncdns: 0.7.0-nightly (#972) #69

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@v3
# Install buildx
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
# Set buildx cache
- name: Cache register
uses: actions/cache@v3
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