Skip to content

Bump @types/node from 22.0.0 to 22.5.0 (#32) #74

Bump @types/node from 22.0.0 to 22.5.0 (#32)

Bump @types/node from 22.0.0 to 22.5.0 (#32) #74

---
name: "GitHub Action: Self-Test"
on:
push:
env:
PRODUCT_VERSION: "1.8.0"
jobs:
setup-nomad:
name: Test `setup-nomad`
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup `nomad` (using local GitHub Action)
uses: "./"
id: setup
with:
version: ${{ env.PRODUCT_VERSION }}
- name: Print `$PATH` for `nomad`
run: which nomad
- name: Print `nomad` version
run: nomad version
- name: Validate `nomad` version is accurate
run: "nomad version | grep --silent 'Nomad v${{ env.PRODUCT_VERSION }}'"
- name: Run `nomad fmt`
run: nomad fmt -check "${{ github.action_path }}./test/example.nomad.hcl"
- name: Setup `nomad` with an invalid version (using local GitHub Action)
uses: "./"
id: invalid_version
with:
version: "invalid_version"
continue-on-error: true
- name: Validate invalid version failed
if: steps.invalid_version.outcome == 'success'
run: echo "Installing an invalid version expected to fail but did not" && exit 1
- name: Setup `nomad` with `latest` version (using local GitHub Action)
uses: "./"
id: latest_version
- name: Print `nomad` version
run: nomad version