mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
add e2e tests to ci.yml
This commit is contained in:
38
.github/workflows/ci.yml
vendored
38
.github/workflows/ci.yml
vendored
@@ -171,3 +171,41 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker run -u $(id -u) --rm -v ${{ github.workspace}}:/awx_devel/:Z \
|
docker run -u $(id -u) --rm -v ${{ github.workspace}}:/awx_devel/:Z \
|
||||||
--workdir=/awx_devel ghcr.io/${{ github.repository_owner }}/awx_devel:${{ github.base_ref }} make ui-test
|
--workdir=/awx_devel ghcr.io/${{ github.repository_owner }}/awx_devel:${{ github.base_ref }} make ui-test
|
||||||
|
|
||||||
|
e2e-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
contents: read
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Checkout tower-qa
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: tower-qa
|
||||||
|
|
||||||
|
- name: Log in to gcr.io
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.GCR_PULL_SECRET }}" | docker login gcr.io -u _json_key --password-stdin
|
||||||
|
|
||||||
|
- name: Pull awx_cypress_base image
|
||||||
|
run: |
|
||||||
|
docker pull gcr.io/ansible-tower-engineering/awx_cypress_base:stable
|
||||||
|
|
||||||
|
- name: Build cypress
|
||||||
|
run: |
|
||||||
|
cd tower-qa/ui-tests/awx-pf-tests
|
||||||
|
docker build -t awx-pf-tests .
|
||||||
|
|
||||||
|
- name: Log in to registry
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
|
- name: Pre-pull image to warm build cache
|
||||||
|
run: |
|
||||||
|
docker pull ghcr.io/${{ github.repository_owner }}/awx_devel:${{ github.base_ref }}
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
run: |
|
||||||
|
DEV_DOCKER_TAG_BASE=ghcr.io/${{ github.repository_owner }} COMPOSE_TAG=${{ github.base_ref }} make docker-compose-build
|
||||||
Reference in New Issue
Block a user