Skip to content

Commit d83ef27

Browse files
authored
Merge pull request #4 from Bandwidth/DX-1613
DX-1613 added package validation template
2 parents 9a5e8ad + dc3ea6e commit d83ef27

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Container image that runs your code
2+
FROM ruby:latest
3+
4+
# Copies your code file from your action repository to the filesystem path `/` of the container
5+
COPY entrypoint.sh /entrypoint.sh
6+
7+
#Make entrypoint.sh exacutable
8+
RUN chmod +x /entrypoint.sh
9+
10+
# Code file to execute when the docker container starts up (`entrypoint.sh`)
11+
ENTRYPOINT ["/entrypoint.sh"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# action.yml
2+
name: 'Validate'
3+
description: 'Validates the package'
4+
runs:
5+
using: 'docker'
6+
image: 'Dockerfile'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
gem build *.gemspec

.github/workflows/validate.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Validate SDK
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
deploy:
10+
name: Validate SDK
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Validate
16+
uses: ./.github/actions/validate

0 commit comments

Comments
 (0)