mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 16:35:44 +03:00
* Updated actions * actions/checkout v4.1.1 ==> v4.1.7 * actions/download-artifact v3.0.2 ==> v4.1.7 * actions/setup-go v4.0.1 ==> v5.0.1 * actions/setup-node v3.7.0 ==> v4.0.2 * actions/upload-artifact v3.1.2 ==> v4.3.3 * andstor/file-existence-action v2.0.0 ==> v3.0.0 * browser-actions/setup-chrome v1.2.0 ==> v1.7.1 * dessant/lock-threads v4.0.1 ==> v5.0.1 * marocchino/sticky-pull-request-comment v2.6.2 ==> v2.9.0 * mshick/add-pr-comment v2.8.1 ==> v2.8.2 * nanasess/setup-chromedriver v2.1.2 ==> v2.2.2 * slackapi/slack-github-action v1.24.0 ==> v1.26.0 * Update HashiCorp actions * hashicorp/actions-docker-build v1 ==> v2.0.0 * hashicorp/actions-generate-metadata v1.1.1 ==> v1.1.1(pinned) * hashicorp/actions-packaging-linux v1 ==> v1.8.0 * hashicorp/setup-copywrite v1.1.2 ==> v1.1.3 * fix parameter
73 lines
2.1 KiB
YAML
73 lines
2.1 KiB
YAML
name: test-e2e
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- 'CHANGELOG.md'
|
|
- '.changelog/**'
|
|
- '.tours/**'
|
|
- 'contributing/**'
|
|
- 'demo/**'
|
|
- 'dev/**'
|
|
- 'integrations/**'
|
|
- 'pkg/**'
|
|
- 'scripts/**'
|
|
- 'terraform/**'
|
|
- 'ui/**'
|
|
- 'website/**'
|
|
push:
|
|
branches:
|
|
- main
|
|
- release/**
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- 'CHANGELOG.md'
|
|
- '.changelog/**'
|
|
- '.tours/**'
|
|
- 'contributing/**'
|
|
- 'demo/**'
|
|
- 'dev/**'
|
|
- 'integrations/**'
|
|
- 'pkg/**'
|
|
- 'scripts/**'
|
|
- 'terraform/**'
|
|
- 'ui/**'
|
|
- 'website/**'
|
|
|
|
jobs:
|
|
test-e2e-vault:
|
|
runs-on: ${{ endsWith(github.repository, '-enterprise') && fromJSON('["self-hosted", "ondemand", "linux"]') || 'ubuntu-latest' }}
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
- uses: ./.github/actions/vault-secrets
|
|
with:
|
|
paths: |-
|
|
kv/data/github/hashicorp/nomad-enterprise/gha ELEVATED_GITHUB_TOKEN ;
|
|
- name: Git config token
|
|
if: endsWith(github.repository, '-enterprise')
|
|
run: git config --global url.'https://${{ env.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'
|
|
- uses: hashicorp/setup-golang@v3
|
|
- run: make deps
|
|
- name: Vault Compatability
|
|
run: make integration-test
|
|
- run: make e2e-test
|
|
|
|
test-e2e-consul:
|
|
runs-on: 'ubuntu-22.04' # this job requires sudo, so not currently suitable for self-hosted runners
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
- name: Git config token
|
|
if: endsWith(github.repository, '-enterprise')
|
|
run: git config --global url.'https://${{ secrets.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'
|
|
- uses: hashicorp/setup-golang@v3
|
|
- name: Consul Compatability
|
|
run: |
|
|
make deps
|
|
sudo make cni
|
|
sudo sed -i 's!Defaults!#Defaults!g' /etc/sudoers
|
|
sudo -E env "PATH=$PATH" make integration-test-consul
|
|
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|