Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Setup CI
  • Loading branch information
Thomas Hughes committed Sep 20, 2019
1 parent 74488db commit 3d8e310
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 28 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,15 @@
name: "Tests"

on:
pull_request:
push:
branches: # array of glob patterns matching against refs/heads. Optional; defaults to all
- master # triggers on pushes that contain changes in master

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: npm ci
- run: npm test
25 changes: 0 additions & 25 deletions .github/workflows/create-release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
@@ -1,7 +1,7 @@
# GitHub Action - Releases API
This GitHub Action (written in JavaScript) wraps the [GitHub Release API](https://developer.github.com/v3/repos/releases/), specifically the [Create a Release](https://developer.github.com/v3/repos/releases/#create-a-release) endpoint, to allow you to leverage GitHub Actions to create releases.

<a href="https://github.com/actions/create-release"><img alt="GitHub Actions status" src="https://github.com/actions/create-release/workflows/Create%20Release/badge.svg"></a>
<a href="https://github.com/actions/create-release"><img alt="GitHub Actions status" src="https://github.com/actions/create-release/workflows/Tests/badge.svg"></a>

## Usage
### Pre-requisites
Expand Down
3 changes: 1 addition & 2 deletions package.json
@@ -1,8 +1,7 @@
{
"name": "create-release",
"version": "1.0.0",
"private": true,
"description": "Generate a release and upload build artifacts",
"description": "Generate a release",
"main": "dist/index.js",
"scripts": {
"lint": "eslint 'src/**.js' 'test/**.js' --fix",
Expand Down

0 comments on commit 3d8e310

Please sign in to comment.