-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nightly' into release/nightly/bin/nanocld/0.15.0
- Loading branch information
Showing
19 changed files
with
229 additions
and
94 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
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 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,7 @@ | |
"ndns", | ||
"newgrp", | ||
"nexthat", | ||
"nhnr", | ||
"nmetrics", | ||
"nographic", | ||
"nproxy", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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
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
Oops, something went wrong.