build(deps): bump github.com/hashicorp/nomad from 1.6.3 to 1.7.2 (#79) #224
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
name: Run E2E Tests | |
on: [push] | |
env: | |
PLEDGE_VERSION: pledge-1.8.com | |
jobs: | |
run-e2e: | |
runs-on: [ubuntu-22.04] | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: hashicorp/setup-golang@v1 | |
with: | |
version-file: go.mod | |
- name: Install Nomad | |
run: | | |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo dd of=/usr/share/keyrings/hashicorp-archive-keyring.gpg | |
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo dd of=/etc/apt/sources.list.d/hashicorp.list | |
sudo apt update && sudo apt install nomad | |
# temporarily get beta version and override the exe | |
cd /tmp | |
curl -o nomad.zip https://releases.hashicorp.com/nomad/1.7.0-beta.1/nomad_1.7.0-beta.1_linux_amd64.zip | |
unzip nomad.zip | |
sudo mv ./nomad /usr/bin/nomad | |
nomad version | |
- name: Install CNI | |
run: | | |
mkdir -p /opt/cni/bin | |
curl -L -o cni.tgz "https://github.com/containernetworking/plugins/releases/download/v1.3.0/cni-plugins-linux-amd64-v1.3.0.tgz" | |
tar -C /opt/cni/bin -xf cni.tgz | |
- name: Install Plugin | |
run: | | |
make dev | |
mkdir /opt/bin | |
curl -L -o /opt/bin/${PLEDGE_VERSION} https://github.com/shoenig/nomad-pledge-driver/releases/download/${PLEDGE_VERSION}/${PLEDGE_VERSION} | |
chmod +x /opt/bin/${PLEDGE_VERSION} | |
sudo cp e2e/resources/client.hcl /etc/nomad.d/nomad.hcl | |
- name: Start Nomad | |
run: | | |
cat /etc/nomad.d/nomad.hcl | |
sudo systemctl start nomad | |
sudo journalctl --no-tail -u nomad.service | |
ps -ef | grep nomad | |
sleep 5 | |
nomad job status | |
nomad node status -self -verbose | |
- name: Basic Tests | |
run: | | |
go test -tags=e2e -count=1 -v ./e2e |