-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
133 additions
and
0 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,60 @@ | ||
name: test-ui | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.changelog/**' | ||
- '.tours/**' | ||
- 'contributing/**' | ||
- 'demo/**' | ||
- 'dev/**' | ||
- 'e2e/terraform/**' | ||
- 'e2e/ui/**' | ||
- 'integrations/**' | ||
- 'pkg/**' | ||
- 'scripts/**' | ||
- 'terraform/**' | ||
- 'website/**' | ||
push: | ||
branches: | ||
- main | ||
- release/** | ||
- convert-hashicorp-nomad-to-actions-20230505-212504 | ||
- test-ui | ||
paths-ignore: | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.changelog/**' | ||
- '.tours/**' | ||
- 'contributing/**' | ||
- 'demo/**' | ||
- 'dev/**' | ||
- 'e2e/terraform/**' | ||
- 'e2e/ui/**' | ||
- 'integrations/**' | ||
- 'pkg/**' | ||
- 'scripts/**' | ||
- 'terraform/**' | ||
- 'website/**' | ||
|
||
jobs: | ||
test-ui: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | ||
- name: yarn install | ||
run: cd ui && yarn install --frozen-lockfile | ||
- name: lint:js | ||
run: cd ui && yarn run lint:js | ||
- name: lint:hbs | ||
run: cd ui && yarn run lint:hbs | ||
- name: Ember tests | ||
env: | ||
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | ||
run: mkdir -p /tmp/test-reports && cd ui && yarn test | ||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 | ||
with: | ||
path: "/tmp/test-reports" | ||
permissions: | ||
contents: read |
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,73 @@ | ||
name: test-windows | ||
on: | ||
pull_request: | ||
paths: | ||
- nomad/drivers/docker | ||
- nomad/client/lib/fifo | ||
- nomad/client/logmon | ||
push: | ||
branches: | ||
- main | ||
- release/** | ||
- convert-hashicorp-nomad-to-actions-20230505-212504 | ||
paths: | ||
- nomad/drivers/docker | ||
- nomad/client/lib/fifo | ||
- nomad/client/logmon | ||
|
||
env: | ||
VAULT_VERSION: 1.4.1 | ||
jobs: | ||
test-windows: | ||
runs-on: "windows-2019-16core" | ||
env: | ||
GOTESTSUM_PATH: c:\tmp\test-reports | ||
steps: | ||
- name: Docker Info | ||
run: docker version | ||
- run: git config --global core.autocrlf false | ||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | ||
- name: Setup go | ||
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0 | ||
with: | ||
go-version-file: ".go-version" | ||
- name: Show installed Go version | ||
shell: bash | ||
run: |- | ||
export PATH=/c/go/bin:/c/gopath/bin:$PATH | ||
go version | ||
- uses: "./.github/actions/install-vault" | ||
with: | ||
version: "$VAULT_VERSION" | ||
- run: vault version | ||
- run: choco install make | ||
- name: Install golang dependencies | ||
shell: bash | ||
run: |- | ||
make deps | ||
- name: Pre-download docker test image | ||
shell: bash | ||
run: |- | ||
docker pull docker.mirror.hashicorp.services/hashicorpdev/busybox-windows:ltsc2019 | ||
- name: Build nomad | ||
shell: bash | ||
run: |- | ||
go install . | ||
- name: Run tests with gotestsum | ||
shell: bash | ||
env: | ||
BUSYBOX_IMAGE: docker.mirror.hashicorp.services/hashicorpdev/busybox-windows:ltsc2019 | ||
run: |- | ||
# Only test docker driver tests for now | ||
export PATH=/c/go/bin:/c/gopath/bin:$PATH | ||
gotestsum --format=short-verbose \ | ||
--junitfile results.xml \ | ||
github.com/hashicorp/nomad/drivers/docker \ | ||
github.com/hashicorp/nomad/client/lib/fifo \ | ||
github.com/hashicorp/nomad/client/logmon | ||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 | ||
with: | ||
name: results.xml | ||
path: results.xml | ||
permissions: | ||
contents: read |