Skip to content

Commit

Permalink
Merge pull request #6 from ai-labs-team/ph-add-workflow-test-prs
Browse files Browse the repository at this point in the history
ci: add workflow to test pull requests
  • Loading branch information
PHunt14 authored Jun 17, 2022
2 parents 33383f7 + 854860b commit bf247b0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow uses actions that are not certified by GitHub.

# This workflow will build the image and then run a few commands inside of the image
# to verify the tools
name: Test the infrastructure-tools docker image

on:
pull_request

env:
TEST_TAG: test/infrastructure-tools:ci-test

jobs:
push_to_registry:
name: Test the infrastructure-tools docker image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Build and export to Docker
uses: docker/build-push-action@v2
with:
context: .
load: true
tags: ${{ env.TEST_TAG }}

- name: Test
run: |
docker run --rm ${{ env.TEST_TAG }} sh -c "kubectl version --client"
docker run --rm ${{ env.TEST_TAG }} sh -c "helm version --client"
docker run --rm ${{ env.TEST_TAG }} sh -c "aws --version"
docker run --rm ${{ env.TEST_TAG }} sh -c "docker --version"

0 comments on commit bf247b0

Please sign in to comment.