Skip to content

Commit

Permalink
DX-1614 added pr check template (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmulford-bw authored Nov 11, 2020
1 parent 1949e56 commit e7370b1
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/validate/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Container image that runs your code
FROM composer:latest

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh

#Make entrypoint.sh exacutable
RUN chmod +x /entrypoint.sh

# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]
6 changes: 6 additions & 0 deletions .github/actions/validate/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# action.yml
name: 'Validate'
description: 'Validates the package'
runs:
using: 'docker'
image: 'Dockerfile'
3 changes: 3 additions & 0 deletions .github/actions/validate/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

composer -h
16 changes: 16 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Validate SDK

on:
pull_request:
branches:
- 'master'

jobs:
deploy:
name: Validate SDK
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Validate
uses: ./.github/actions/validate

0 comments on commit e7370b1

Please sign in to comment.