Skip to content

feat: nomad development environment #4

feat: nomad development environment

feat: nomad development environment #4

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
env:
CONSUL_VERSION: 1.20.1 # renovate: datasource=github-releases depName=hashicorp/consul
jobs:
example:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
id-token: write # Required by hetznercloud/tps-action
defaults:
run:
working-directory: example
steps:
- uses: actions/checkout@v4
- uses: opentofu/setup-opentofu@v1
with:
tofu_version: v1.8.7 # renovate: datasource=github-releases depName=opentofu/opentofu
tofu_wrapper: false
- uses: hashicorp/setup-nomad@main
id: setup
with:
version: 1.9.3 # renovate: datasource=github-releases depName=hashicorp/nomad
- name: setup consul binary
run: |

Check failure on line 40 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 40, Col: 14): Unrecognized named-value: 'CONSUL_VERSION'. Located at position 1 within expression: CONSUL_VERSION
curl -o consul.zip https://releases.hashicorp.com/consul/${{ CONSUL_VERSION }}/consul_${{ CONSUL_VERSION }}_linux_amd64.zip
unzip consul.zip
mv consul /usr/local/bin/
- uses: hetznercloud/tps-action@main
- name: Swap module source
run: sed -i -e 's|source = ".*"|source = "./.."|' main.tf
- name: Setup environment
run: make up
- name: Verify environment
run: |
source files/env.sh
nomad node status
- name: Cleanup
if: always()
run: make down